exoodev / yii2-blog
Yii2 框架的博客扩展
1.0.5
2019-09-17 10:10 UTC
Requires
README
========================
安装
安装此扩展的首选方式是通过 Composer。
你可以运行以下命令:
composer require --prefer-dist exoodev/yii2-blog
或者将以下内容添加到你的 composer.json 文件的 require 部分中:
"exoodev/yii2-blog": "*"
使用方法
示例后端配置
return [
'modules' => [
'blog' => [
'class' => 'exoo\blog\Module',
'isBackend' => true,
],
],
];
示例前端配置
return [
'modules' => [
'blog' => [
'class' => 'exoo\blog\Module',
]
],
];
迁移
yii migrate --migrationPath=@exoo/blog/migrations