alexander-emelyanov / yii2-articles-module
Articles management for multilingual web applications
Installs: 109
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 3
Open Issues: 1
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2025-01-04 17:47:42 UTC
README
Articles management for multilingual web applications
Installation
Composer
The preferred way to install this extension is through Composer.
Either run
php composer.phar require alexander-emelyanov/yii2-articles-module "dev-master"
or add
"alexander-emelyanov/yii2-articles-module": "dev-master"
to the require section of your composer.json
and run composer update
and the next step...
Configure you Yii2 application
Add 'articles' module to 'module' section of configuration file your application (i recommend add this module to backend application)
'modules' => [
// ... some modules
'articles' => [
'class' => 'AlexanderEmelyanov\yii\modules\articles\Module',
],
// ... some modules
],
Update database
Run migrations for this module
./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:
'modules' => [
// ... some modules
'articles' => [
'class' => 'AlexanderEmelyanov\yii\modules\articles\Module',
'layout' => '@app/views/layouts/main',
],
// ... some modules
],