nullref / yii2-category
Installs: 995
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 6
Forks: 7
Open Issues: 2
Type:yii2-extension
Requires
- php: >=5.5.0
- nullref/yii2-core: ^0.0.3
- nullref/yii2-useful: ^0.0.4
- yiisoft/yii2: >=2.0.4
- yiisoft/yii2-jui: ^2.0
Suggests
- voskobovich/yii2-linker-behavior: Need to link categories with another models
- wbraganca/yii2-fancytree-widget: Fancytree widget for form input
This package is auto-updated.
Last update: 2024-12-21 19:51:18 UTC
README
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
)
Pay attention that if you don't use our application template it needs to change config files structure to have ability run commands that show above.
Please check this documentation section
Module integration
If you need additional information about integration current module with your project, please check example folder
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',...], ...