ccheng / yii2-category-config
Category Config Manager
Package info
github.com/fishes207569/yii2-category-config
Type:yii2-extension
pkg:composer/ccheng/yii2-category-config
v1.0.8
2022-05-26 01:00 UTC
Requires
- yiisoft/yii2: *
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Category Config By Ccheng
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist ccheng/yii2-category-config "*"
or add
"yii2-category-config": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
执行数据迁移以添加表结构:
yii migrate --migrationPath=@vendor/ccheng/yii2-category-config/src/console/migrations
添加配置管理接口模块
return [ 'modules' => [ 'config' => [ 'class'=>'ccheng\config\api\Module', ] ... ] ];