mrstroz/yii2-wavecms-example

Example module for WaveCMS

dev-master 2018-04-27 12:37 UTC

This package is auto-updated.

Last update: 2024-04-26 01:16:05 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

  1. Update backend/config/main.php (Yii2 advanced template)
'modules' => [
    // ...
    'wavecms-example' => [
        'class' => 'mrstroz\wavecms\example\Module'
    ],
],
  1. 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