it-yakutia / yii2-blog
Blog module for Yii2
Installs: 145
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- it-yakutia/yii2-gallery: ~1.0.0
- uraankhayayaal/yii2-materializecomponents: ~1.0.1
- uraankhayayaal/yii2-redactor: ~1.0.0
- uraankhayayaal/yii2-sortable: ~1.0.1
- yiisoft/yii2: ~2.0.0
README
Blog module for Yii2
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist it-yakutia/yii2-blog "*"
or add
"it-yakutia/yii2-blog": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply add in your console config:
'controllerMap' => [ ... 'migrate' => [ ... 'migrationPath' => [ ... '@vendor/it-yakutia/yii2-blog/src/migrations', ... ], ], ],
And just run the command:
php yii migrate
Set in common config params:
return [ /* ... */ 'domain' => 'https://yourdomain.example', ];
Add urls in your backend project:
Url::toRoute('/blog/back/index');
Add RBAC roles:
blog
Custom view file:
'custom_view_for_modules' => [ 'article_front' => [ 'view' => '@frontend/views/front_page/view', ], ],
Add fixtures:
php yii fixture ArticleCategorySet --namespace='ityakutia\blog\tests\fixtures'
Add fixtures in docker:
php yii fixture ArticleCategorySet --namespace='ityakutia\blog\tests\fixtures' --interactive=0