composer require cookyii/module-account:dev-master
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',
],
// ...
];
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',
],
// ...
];
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',
];
// ...
}
./backend rbac/update
./frontend migrate