dev-master
9999999-devFlexible Statistic data module for Yii 2
MIT
The Requires
yii2 statistic dungphanxuan yii2-chart
Flexible Statistic data module for Yii 2
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require dungphanxuan/yii2-model-stat=dev-master
or add, (*4)
"dungphanxuan/yii2-model-stat": "@dev"
to the require section of your composer.json., (*5)
NOTE: Make sure that you don't have
chart
component configuration in your config files., (*6)
Add following lines to your main configuration file:, (*7)
'modules' => [ 'chart' => [ 'class' => 'dungphanxuan\chart\Module', ], ],
Build Stat Url, (*8)
<?php echo \yii\helpers\Html::a('Chart', [ '/chart/stat', 'type' => 'Article', 'nm' => 'common\models', 'id' => null, 'field' => 'created_at', 'time_type' => 1 ], ['class' => 'btn btn-info']) ?>
Screenshot, (*9)
, (*10)
Flexible Statistic data module for Yii 2
MIT
yii2 statistic dungphanxuan yii2-chart