mrstroz / yii2-wavecms-example
WaveCMS 的示例模块
dev-master
2018-04-27 12:37 UTC
Requires
- php: >=5.6.0
- yiisoft/yii2: ~2.0.6
Requires (Dev)
- php: >=5.4.0
- yiisoft/yii2: ~2.0.6
This package is auto-updated.
Last update: 2024-09-26 02:24:06 UTC
README
示例模块为 Yii 2 WaveCMS。
请先从 Yii 2 WaveCMS 完成所有安装步骤。
安装
安装此扩展的首选方式是通过 composer。
运行
composer require --prefer-source "mrstroz/yii2-wavecms-example" "dev-master"
或添加
"mrstroz/yii2-wavecms-example": "dev-master"
到您的 composer.json
文件的 require 部分。
要求
- 更新
backend/config/main.php
(Yii2 高级模板)
'modules' => [
// ...
'wavecms-example' => [
'class' => 'mrstroz\wavecms\example\Module'
],
],
- 运行迁移
在 console/config/main.php
中添加 migrationPath
并运行 yii migrate
// Add migrationPaths to console config: 'controllerMap' => [ 'migrate' => [ 'class' => 'yii\console\controllers\MigrateController', 'migrationPath' => [ '@vendor/mrstroz/yii2-wavecms-example/migrations' ], ], ],
或直接运行迁移
yii migrate --migrationPath=@vendor/mrstroz/yii2-wavecms-example/migrations