cookyii / module-account
Account management module for Cookyii CMF
Installs: 530
Dependents: 3
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 2
Open Issues: 0
Type:yii2-extension
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-11-21 00:58:21 UTC
README
Installation
composer require cookyii/module-account:dev-master
Configuration
1. Update config
In backend
app
config
in section modules
add cookyii\modules\Account\backend\Module
and in section bootstrap
add account
:
// ./backend-app/config/app.php return [ // ... 'bootstrap' => [ // some components ... 'account' ], 'modules' => [ // some modules ... 'account' => 'cookyii\modules\Account\backend\Module', ], // ... ];
2. Dependencies
Also, you need to configure the following modules (they are already downloaded):
// ./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. Add new permissions
In rbac/update
command add "merge" class 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. Update permissions
./backend rbac/update
5. Execute new migrations
./frontend migrate