hrupin/yii2-blog

Yii2 Blog for other application YII2

Installs: 11

Dependents: 0

Suggesters: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

0.0.4 2017-08-06 09:51 UTC

README

  • Для личного использования, крайне не рекомендую устанавливать. Поддержки нет и не будет.

  • For personal use it is not recommend to install. No support and never will.

install

composer

composer require hrupin/yii2-blog

or in composer.json

"hrupin/yii2-blog": "*"

configure

in common/config/main.php

'modules' => [
        'blog' => [
            'class' => 'hrupin\blog\Module',
            'lang' => ['en-US' => 'English', 'ru-RU' => 'Russian']
        ],
    ],

in frontend/config/main.php

'modules' => [
    'blog' => [
        'as frontend' => 'hrupin\blog\filters\FrontendFilter',
    ],
]

in backend/config/main.php

'modules' => [
    'blog' => [
        'as backend' => 'hrupin\blog\filters\BackendFilter',
    ],
],

migrate

 php yii migrate/up --migrationPath=@vendor/hrupin/yii2-blog/migrations