cookyii / module-account
Cookyii CMF 的账户管理模块
dev-master
2017-08-04 08:06 UTC
Requires
- php: >=5.5.0
- cookyii/base: dev-master
- cookyii/module-postman: dev-master
- rmrevin/yii2-fontawesome: ~2.10
- rmrevin/yii2-rbac-command: ~1.3
- yiisoft/yii2-authclient: ~2.0
This package is not auto-updated.
Last update: 2024-09-12 00:05:46 UTC
README
安装
composer require cookyii/module-account:dev-master
配置
1. 更新配置
在 backend
app
配置文件中,在 modules
部分添加 cookyii\modules\Account\backend\Module
,并在 bootstrap
部分添加 account
// ./backend-app/config/app.php return [ // ... 'bootstrap' => [ // some components ... 'account' ], 'modules' => [ // some modules ... 'account' => 'cookyii\modules\Account\backend\Module', ], // ... ];
2. 依赖项
此外,您还需要配置以下模块(它们已经被下载)
// ./backend-app/config/app.php return [ // ... 'bootstrap' => [ // some components ... 'account', 'postman', ], 'modules' => [ // some modules ... 'account' => 'cookyii\modules\Account\backend\Module', 'postman' => 'cookyii\modules\Postman\backend\Module', ], // ... ];
3. 添加新权限
在 rbac/update
命令中添加 "merge" 类 cookyii\modules\Account\backend\Permissions
// ./common/commands/RbacCommand.php class RbacCommand extends \rmrevin\yii\rbac\Command { public $backendMerge = [ // ... 'cookyii\modules\Account\backend\Permissions', 'cookyii\modules\Postman\backend\Permissions', ]; // ... }
4. 更新权限
./backend rbac/update
5. 执行新迁移
./frontend migrate