ccheng/yii2-category-config

Category Config Manager

v1.0.8 2022-05-26 01:00 UTC

This package is auto-updated.

Last update: 2024-04-26 05:16:02 UTC


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',
		]
		...
	]
];