Banner server for yii2
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist it-yakutia/yii2-banner "*"
or add
"it-yakutia/yii2-banner": "*"
to the require section of your composer.json
file.
Add migration path in your console config file:
'controllerMap' => [
...
'migrate' => [
...
'migrationPath' => [
...
'@vendor/it-yakutia/banner/src/migrations',
],
],
]
Once the extension is installed, simply use it in your code by :
<?= Url::toRoute(['/banner/back/index']); ?>
Add RBAC roles:
banner
Add fixtures:
php yii fixture Banner --namespace='ityakutia\banner\tests\fixtures'
Add fixtures in docker:
php yii fixture Banner --namespace='ityakutia\banner\tests\fixtures' --interactive=0