yii2-articles-module
Articles management for multilingual web applications, (*1)
Installation
Composer
The preferred way to install this extension is through Composer., (*2)
Either run, (*3)
php composer.phar require alexander-emelyanov/yii2-articles-module "dev-master"
or add, (*4)
"alexander-emelyanov/yii2-articles-module": "dev-master"
to the require section of your composer.json
and run composer update
, (*5)
and the next step..., (*6)
Add 'articles' module to 'module' section of configuration file your application (i recommend add this module to backend application), (*7)
'modules' => [
// ... some modules
'articles' => [
'class' => 'AlexanderEmelyanov\yii\modules\articles\Module',
],
// ... some modules
],
Update database
Run migrations for this module, (*8)
./yii migrate --migrationPath=@AlexanderEmelyanov/yii/modules/articles/migrations
Customization
You can use module layout by default (which extend main layout of application and contains main menu of module) or specify your desirable layout in module config:, (*9)
'modules' => [
// ... some modules
'articles' => [
'class' => 'AlexanderEmelyanov\yii\modules\articles\Module',
'layout' => '@app/views/layouts/main',
],
// ... some modules
],