2017 © Pedro Peláez
 

library yii2-blog

Yii2 blog module

image

pendalf89/yii2-blog

Yii2 blog module

  • Tuesday, June 21, 2016
  • by PendalF89
  • Repository
  • 5 Watchers
  • 9 Stars
  • 2,032 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 14 Forks
  • 2 Open issues
  • 1 Versions
  • 8 % Grown

The README.md

yii2-blog

Yii2 blog module, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

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

or add, (*4)

"pendalf89/yii2-blog": "*"

to the require section of your composer.json file., (*5)

Apply migration, (*6)

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

Configuration:, (*7)

'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., (*8)

The Versions