Example module for Yii 2 WaveCMS.
Please do all install steps first from Yii 2 WaveCMS.
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.
- 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