appage/yii2-articles

This extension includes articles functionality with Imperavi Redactor

This package's canonical repository appears to be gone and the package has been frozen as a result.

Installs: 30

Dependents: 0

Suggesters: 0

Security: 0

Type:yii2-extension

v0.1.9.7 2017-09-19 17:16 UTC

This package is auto-updated.

Last update: 2019-05-25 00:38:34 UTC


README

This extension includes articles functionality with Imperavi Redactor

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist appage/yii2-articles "*"

or add

"appage/yii2-articles": "*"

to the require section of your composer.json file.

Migrations

Execute migrations

php yii migrate --migrationPath="@appage/articles/migrations"

OR

add to console/config/main.php:

'controllerMap' => [
    'migrate' => [
        'class' => 'yii\console\controllers\MigrateController',
        'migrationNamespaces' => [
            'app\migrations',
            'appage\articles\migrations',
        ],
    ],
],

then use

php yii migrate

Usage

Once the extension is installed, simply add next configuration to your project:

    'modules' => [
        'articles' => [
            'class' => 'appage\articles\ArticlesModule',
            // if you want to keep files on frontend, uncomment this:
            // 'siteUrl' => 'http://frontend.site.com/',
        ],
    ],

Add module to bootstrap section:

'bootstrap' => [
    ...,
    'articles',
]

Add frontend/web/files directory.