alexander-emelyanov/yii2-articles-module
最新稳定版本:0.0.1
Composer 安装命令:
composer require alexander-emelyanov/yii2-articles-module
包简介
Articles management for multilingual web applications
README 文档
README
Articles management for multilingual web applications
Installation
Composer
The preferred way to install this extension is through Composer.
Either run
php composer.phar require alexander-emelyanov/yii2-articles-module "dev-master"
or add
"alexander-emelyanov/yii2-articles-module": "dev-master"
to the require section of your composer.json and run composer update
and the next step...
Configure you Yii2 application
Add 'articles' module to 'module' section of configuration file your application (i recommend add this module to backend application)
'modules' => [
// ... some modules
'articles' => [
'class' => 'AlexanderEmelyanov\yii\modules\articles\Module',
],
// ... some modules
],
Update database
Run migrations for this module
./yii migrate --migrationPath=@AlexanderEmelyanov/yii/modules/articles/migrations
Customization
You can use module layout by default (which extend main layout of application and contains main menu of module) or specify your desirable layout in module config:
'modules' => [
// ... some modules
'articles' => [
'class' => 'AlexanderEmelyanov\yii\modules\articles\Module',
'layout' => '@app/views/layouts/main',
],
// ... some modules
],
统计信息
- 总下载量: 109
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-12-14