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. Email us for help if needed.
Package info
bitbucket.org/appage/yii2-articles
Type:yii2-extension
pkg:composer/appage/yii2-articles
Requires
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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.