composer require abcms/yii2-structure:dev-master
1- Add the migration namespaces in the console.php configuration:
'controllerMap' => [
'migrate' => [
'class' => 'yii\console\controllers\MigrateController',
'migrationNamespaces' => [
'abcms\library\migrations',
'abcms\structure\migrations',
],
],
],
2- Run ./yii migrate
Add a default translation source in the main configuration:
'i18n' => [
'translations' => [
'*' => [
'class' => 'yii\i18n\PhpMessageSource',
'basePath' => '@app/messages',
],
],
],
List the structure module in the modules property of the application:
[
'modules' => [
'structure' => [
'class' => 'abcms\structure\module\Module',
],
],
]