wiseking2018 2018-11-14 23:22:47 325次浏览 1条评论 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
亿速云
  • 评论于 2018-12-06 21:30

    欢迎大家一起加入学习PHP的这个大家庭,会有最新的资料发给大家(486583931)邀请你一起去学习一下

您需要登录后才可以评论。登录 | 立即注册