Via composer
$ composer require --prefer-dist kerneldos/yii2-admin-modules
or add
"kerneldos/yii2-admin-modules": "~1.0"
to the require section of your composer.json
file.
yii migrate --migrationPath=@kerneldos/extmodule/migrations --interactive=0
Add the module to your main config file for manual config, ex:
'modules' => [
//...
'admin' => [
'class' => 'kerneldos\extmodule\Module',
'layoutPath' => '@app/views/layouts',
'layout' => 'main',
'as Access' => [
'class' => 'yii\filters\AccessControl',
'rules' => [
[
'allow' => true,
'roles' => ['admin'],
],
],
],
],
//...
],
Please see CHANGELOG for more information on what has changed recently.
$ composer test
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
If you discover any security related issues, please email kerneldos@mail.ru instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.