composer require cookyii/module-translation:dev-master
In backend
app
config
in section modules
add cookyii\modules\Translation\backend\Module
and in section bootstrap
add page
:
// ./backend-app/config/app.php
return [
// ...
'bootstrap' => [
// some components ...
'translation'
],
'modules' => [
// some modules ...
'translation' => 'cookyii\modules\Translation\backend\Module',
],
// ...
];
In rbac/update
command add merge class cookyii\modules\Translation\backend\Permissions
:
// ./common/commands/RbacCommand.php
class RbacCommand extends \rmrevin\yii\rbac\Command
{
public $backendMerge = [
// ...
'cookyii\modules\Translation\backend\Permissions',
];
}
./backend rbac/update