kerneldos/yii2-admin-modules
Composer 安装命令:
composer require kerneldos/yii2-admin-modules
包简介
The Yii2 extension of module management
README 文档
README
Install
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.
Apply migrations to create required tables
yii migrate --migrationPath=@kerneldos/extmodule/migrations --interactive=0
Usage
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'], ], ], ], ], //... ],
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email kerneldos@mail.ru instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-11-12