具有 CodeFirst 功能的代码生成器 xGii [ 2.0 版本 ]
在gii基础上新增代码优先模式,基于表单填写的数据表名称以及字段,自动生成模型代码文件,同时在数据库中创建相同构架的数据表。
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
wiseking2018
注册时间:2018-11-13
最后登录:2019-01-05
在线时长:2小时55分
最后登录:2019-01-05
在线时长:2小时55分
- 粉丝0
- 金钱15
- 威望10
- 积分135
共 0 条评论