Skip to content

dsoft/yii2-abcms-structure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yii2 ABCMS structure library

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',
        ],
    ],
]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages