Category Config By Ccheng
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.
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',
]
...
]
];