wiseking2018 2018-11-14 23:22:47 3267次浏览 0条评论 0 0 0

在gii基础上新增代码优先模式,基于表单填写的数据表名称以及字段,自动生成模型代码文件,同时在数据库中创建相同构架的数据表。

5224.jpg

Github地址:https://github.com/wisekinger/yii2-xgii

packages: https://packagist.org/packages/wisekinger/yii2-xgii

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --dev wisekinger/yii2-xgii

or add

"wisekinger/yii2-xgii": "2.0.x-dev"

to the require section of your composer.json file.

Useage

add code below to your config section

$config['bootstrap'][] = 'xgii';
$config['modules']['xgii'] = [
    'class' => 'yii\xgii\Module',
];

You can then access xGii through the following URL:

http://localhost/path/to/index.php?r=xgii

or if you have enabled pretty URLs, you may use the following URL:

http://localhost/path/to/index.php/xgii
    没有找到数据。
您需要登录后才可以评论。登录 | 立即注册