mrstroz / yii2-wavecms-example
Example module for WaveCMS
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
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: 2025-02-26 03:26:34 UTC
README
Example module for Yii 2 WaveCMS.
Please do all install steps first from Yii 2 WaveCMS.
Installation
The preferred way to install this extension is through composer.
Run
composer require --prefer-source "mrstroz/yii2-wavecms-example" "dev-master"
or add
"mrstroz/yii2-wavecms-example": "dev-master"
to the require section of your composer.json
file.
Required
- Update
backend/config/main.php
(Yii2 advanced template)
'modules' => [
// ...
'wavecms-example' => [
'class' => 'mrstroz\wavecms\example\Module'
],
],
- Run migration
Add the migrationPath
in console/config/main.php
and run yii migrate
:
// Add migrationPaths to console config: 'controllerMap' => [ 'migrate' => [ 'class' => 'yii\console\controllers\MigrateController', 'migrationPath' => [ '@vendor/mrstroz/yii2-wavecms-example/migrations' ], ], ],
Or run migrates directly
yii migrate --migrationPath=@vendor/mrstroz/yii2-wavecms-example/migrations