abcms / yii2-structure
There is no license information available for the latest version (dev-master) of this package.
Package info
github.com/dsoft/yii2-abcms-structure
Type:yii2-extension
pkg:composer/abcms/yii2-structure
dev-master
2021-06-10 13:49 UTC
Requires
- abcms/yii2-library: dev-master
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2026-03-10 23:57:57 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',
],
],
]