Admin / basic template based on: dektrium\yii2-user developeruz\yii2-db-rbac lajax\yii2-translate-manager lajax\yii2-language-picker codezeen\yii2-adminlte
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist dyar74/yii2-admin "*"
or add
to the require section of your `composer.json` file.
"dyar74/yii2-admin": "*"
add migrations: php yii migrate/up --migrationPath=@vendor/dyar74/yii2-admin/migrations
default user: admin password: admin12345
add to config web.php:
'bootstrap' => ['admin'], 'language' => 'uk-UA', // you default language 'modules' => [ 'admin' => [ 'class' => 'dyar74\admin\AdminModule', 'userItems' => ['label' => Yii::t('admin', 'User Block Extensions'), 'options' => ['class' => 'treeview'], 'items' => [ [ 'label' => Yii::t('admin', 'Ext1'), 'url' => ['#']], [ 'label' => Yii::t('admin', 'Ext2'), 'url' => ['#']], [ 'label' => Yii::t('admin', 'Ext3'), 'url' => ['#']], ] ], //if you have add items to admin menu ],.. ] Change return to(see you path to vendor): return array_merge_recursive($config, require('../vendor/dyar74/yii2-admin/config/admin.php'));