uraankhayayaal/yii2-page
Composer 安装命令:
composer require uraankhayayaal/yii2-page
包简介
Page module for Yii2 with slug
关键字:
README 文档
README
Page module for Yii2 with slug
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist uraankhayayaal/yii2-page "*"
or add
"uraankhayayaal/yii2-page": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply add in your console config:
'controllerMap' => [ ... 'migrate' => [ ... 'migrationPath' => [ ... '@uraankhayayaal/page/src/migrations', ... ], ], ],
And just run the command:
php yii migrate
Set in common config params:
return [ /* ... */ 'domain' => 'https://yourdomain.example', ];
Add urls in your backend project:
Url::toRoute('/page/back/index');
Add RBAC roles:
page
Custom view file:
'custom_view_for_modules' => [ 'page_front' => [ 'view' => '@frontend/views/front_page/view', ], ],
Add fixtures:
php yii fixture PageMenuItem --namespace='uraankhayayaal\page\tests\fixtures'
php yii fixture PageBlockChart --namespace='uraankhayayaal\page\tests\fixtures'
php yii fixture PageBlock --namespace='uraankhayayaal\page\tests\fixtures'
Add fixtures in docker:
php yii fixture PageMenuItem --namespace='uraankhayayaal\page\tests\fixtures' --interactive=0
php yii fixture PageBlockChart --namespace='uraankhayayaal\page\tests\fixtures' --interactive=0
php yii fixture PageBlock --namespace='uraankhayayaal\page\tests\fixtures' --interactive=0
统计信息
- 总下载量: 270
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-09-18