2017 © Pedro Peláez
 

yii2-extension yii2-structure

image

abcms/yii2-structure

  • Thursday, April 6, 2017
  • by abcms
  • Repository
  • 1 Watchers
  • 0 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 19 % Grown

The README.md

Yii2 ABCMS structure library

Install:

composer require abcms/yii2-structure:dev-master

DB migrations

1- Add the migration namespaces in the console.php configuration:, (*1)

'controllerMap' => [
    'migrate' => [
        'class' => 'yii\console\controllers\MigrateController',
        'migrationNamespaces' => [
            'abcms\library\migrations',
            'abcms\structure\migrations',
        ],
    ],
],

2- Run ./yii migrate, (*2)

Default translation source

Add a default translation source in the main configuration:, (*3)

'i18n' => [
    'translations' => [
        '*' => [
            'class' => 'yii\i18n\PhpMessageSource',
            'basePath' => '@app/messages',
        ],
    ],
],

Add the module

List the structure module in the modules property of the application:, (*4)

[
    'modules' => [
        'structure' => [
            'class' => 'abcms\structure\module\Module',
        ],
    ],
]

The Versions

06/04 2017

dev-master

9999999-dev

  Sources   Download

The Requires