esoftslimited / yii2-blog
从 pendalf89 的 yi2-blog 模块 fork 出来的 Yii2 博客模块,用于改进和学习目的
dev-master
2015-08-29 15:45 UTC
This package is not auto-updated.
Last update: 2024-09-28 18:28:06 UTC
README
Yii2 博客模块安装
安装此扩展的首选方式是通过 composer。
可以运行
php composer.phar require --prefer-dist pendalf89/yii2-blog "*"
或者添加
"pendalf89/yii2-blog": "*"
到你的 composer.json
文件的 require 部分。
应用迁移
yii migrate --migrationPath=vendor/pendalf89/yii2-blog/migrations
配置
'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->id; }, ], ],
别忘了配置 PendalF89/yii2-filemanager 扩展。