hrupin/yii2-blog

Yii2 Blog for other application YII2

Installs: 13

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

0.0.4 2017-08-06 09:51 UTC

This package is not auto-updated.

Last update: 2024-11-16 15:20:33 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