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.
v0.1.9.7
2017-09-19 17:16 UTC
Requires
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.