cookyii / module-client
Cookyii CMF 的客户端管理模块
dev-master
2017-02-03 10:46 UTC
Requires
- php: >=5.5.0
- cookyii/base: dev-master
- cookyii/module-account: dev-master
- rmrevin/yii2-fontawesome: ~2.10
This package is not auto-updated.
Last update: 2024-09-14 17:11:15 UTC
README
安装
composer require cookyii/module-client:dev-master
配置
1. 更新配置
在 backend
app
配置文件中的 modules
部分,添加 cookyii\modules\Client\backend\Module
,并在 bootstrap
部分添加 client
// ./backend-app/config/app.php return [ // ... 'bootstrap' => [ // some components ... 'client' ], 'modules' => [ // some modules ... 'client' => 'cookyii\modules\Client\backend\Module', ], // ... ];
2. 添加新权限
在 rbac/update
命令中添加 "merge" 类 cookyii\modules\Client\backend\Permissions
// ./common/commands/RbacCommand.php class RbacCommand extends \rmrevin\yii\rbac\Command { public $backendMerge = [ // ... 'cookyii\modules\Client\backend\Permissions', ]; // ... }
4. 更新权限
./backend rbac/update
5. 执行新迁移
./frontend migrate