2017 © Pedro PelĂĄez
 

yii2-extension yii2-staticpages-module

Module to manage static pages in a Yii2 application

image

daxslab/yii2-staticpages-module

Module to manage static pages in a Yii2 application

  • Tuesday, April 3, 2018
  • by cccaballero
  • Repository
  • 2 Watchers
  • 0 Stars
  • 63 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 2 % Grown

The README.md

StaticPages

Build Status Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Module to manage static pages in a Yii2 application, (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require --prefer-dist daxslab/yii2-staticpages-module "*"

or add, (*5)

"daxslab/yii2-staticpages-module": "*"

to the require section of your composer.json file., (*6)

Database Migration

./yii migrate --migration-path="@daxslab/staticpages/migrations"

Configuration

In the backend configure the Page module by the following:, (*7)

'modules' => [
    //...   
    'staticpages' => [
        'class' => daxslab\staticpages\Module::class,
        'controllerNamespace' => 'daxslab\staticpages\controllers\backend',
        // you can setup any InputWidget subclass as text editor
        'editorConfig' => [
            'class' => yii2mod\markdown\MarkdownEditor\MarkdownEditor::class,
        ];
    ],
    //...
]

And in frontend:, (*8)

'modules' => [
    //...   
    'staticpages' => [
            'class' => daxslab\staticpages\Module::class,
            'controllerNamespace' => 'daxslab\staticpages\controllers\frontend',
            // you can specify a different view path for better matching your style
            'viewPath' => '@frontend/views/',
        ],
    //...
]

Proudly made by Daxslab., (*9)

The Versions

03/04 2018

dev-master

9999999-dev

Module to manage static pages in a Yii2 application

  Sources   Download

MIT

The Requires

 

by Gabriel A. LĂłpez LĂłpez
by Carlos Cesar Caballero DĂ­az

yii2 cms static page