Yii2 Category
Module for categories (WIP)
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist nullref/yii2-category "*"
or add
"nullref/yii2-category": "*"
to the require section of your composer.json
file.
Then You have run console command for install this module:
php yii module/install nullref/yii2-category
and module will be added to your application config (@app/config/installed_modules.php
)
Using with admin module
You can use this module with modules:
Models overriding
'category' => [
'class' => 'nullref\category\Module',
'classMap' => [
'Category' => 'app\models\Category',
'CategoryQuery' => 'app\models\CategoryQuery',
],
],
Also you have to add module to bootstrap list of application:
...
'bootstrap' => ['category',...],
...