pendalf89/yii2-blog

Yii2 blog module

Maintainers

Details

github.com/PendalF89/yii2-blog

Installs: 2 438

Dependents: 0

Suggesters: 0

Security: 0

Stars: 8

Watchers: 5

Forks: 13

dev-master 2016-06-21 15:32 UTC

This package is not auto-updated.

Last update: 2021-11-27 01:25:30 UTC


README

Yii2 blog module Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist pendalf89/yii2-blog "*"

or add

"pendalf89/yii2-blog": "*"

to the require section of your composer.json file.

Apply migration

yii migrate --migrationPath=vendor/pendalf89/yii2-blog/migrations

Configuration:

'modules' => [
    'blog' => [
        'class' => 'pendalf89\blog\Module',
        // This option automatically translit entered titles 
        // from russian symbols to english on fly. Default false.
        'autoTranslit' => true, 
        // Some options for CKEditor. Default custom options.
        'editorOptions' => [],
        // callback function for create post view url. Have $model argument.
        'viewPostUrlCallback' => function($model) {
                return '/' . $model->alias;
            },
    ],
],

Don't forget configure PendalF89/yii2-filemanager extension.