Note: This module uses yii2-settings
module by idfly.
-
Setup module
yii2-settings
-
To the project file
composer.json
add to therequire
section:"idfly/yii2-trackers": "dev-master"
-
To the
repositories
section:{ "type": "git", "url": "git@bitbucket.org:idfly/yii2-trackers.git" }
-
Run
composer update
-
Place to the project's configuration file:
$config['modules']['trackers'] = ['class' => 'idfly\trackers\Module'];
- Include tracker in to assets:
#!php
class AppAsset extends \yii\web\AssetBundle
{
public function init()
{
parent::init();
$this->js[] = \Yii::getAlias('@web') .'/trackers';
}
}
- Open page:
http://your-site/admin/settings/edit?modelName=idfly\trackers\models\TrackersSetting