abcms / yii2-structure
Installs: 82
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- abcms/yii2-library: dev-master
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2025-01-10 21:44:01 UTC
README
Install:
composer require abcms/yii2-structure:dev-master
DB migrations
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
Default translation source
Add a default translation source in the main configuration:
'i18n' => [ 'translations' => [ '*' => [ 'class' => 'yii\i18n\PhpMessageSource', 'basePath' => '@app/messages', ], ], ],
Add the module
List the structure module in the modules property of the application:
[ 'modules' => [ 'structure' => [ 'class' => 'abcms\structure\module\Module', ], ], ]