2017 © Pedro Peláez
 

yii2-extension yii2-datadict

系统字段管理

image

abiao/yii2-datadict

系统字段管理

  • Thursday, December 21, 2017
  • by caibiao
  • Repository
  • 0 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

yii2-datadict

安乐窝字段管理控件扩展, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist anlewo/yii2-datadict "*"

or add, (*4)

"anlewo/yii2-datadict": "*"

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, simply use it in your code by :, (*6)

    # 调用添加字段
    /datadict/datadict/index
    # 调用添加字段说明
    /datadict/datadict-detail/index
     # 调用获取所有字段取值接口
     $datadictlist = Yii::$app->Datadict->getAll();


配置说明

请在配置文件加入模块,以调用字段管理controller, (*7)

    ...
        'datadict' => [
            'class' => 'anlewo\datadict\Module',
        ],
    ...
  ```  
请在配置文件加入组件配置,以调用字段管理Component
```php
    ...
     'Datadict' => [
            'class' => 'anlewo\datadict\DatadictComponent',
        ],
    ...
...



数据迁移
------
如果数据库不存在存储搜索条件的数据表结构,请执行下面的数据迁移命令:
```php
yii migrate --migrationPath=@vendor/anlewo/yii2-datadict/migrations

其他说明

注意控件接口有多个, (*8)

    ...获取所有字段
        $datadictlist = Yii::$app->Datadict->getAll();
    ...根据id获取字段
        $datadictlist = Yii::$app->Datadict->getDataDict($id);

The Versions

21/12 2017

dev-feature/#321

dev-feature/#321

系统字段管理

  Sources   Download

MIT

The Requires

 

by datadict

extension yii2 abiao yii2-datadict

21/12 2017

dev-master

9999999-dev

系统字段管理

  Sources   Download

MIT

The Requires

 

by datadict

extension yii2 abiao yii2-datadict