abcms/yii2-structure

There is no license information available for the latest version (dev-master) of this package.

Installs: 82

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2021-06-10 13:49 UTC

This package is auto-updated.

Last update: 2024-04-10 20:11:36 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',
        ],
    ],
]