Download the PHP package jaclise/yii2-gii without Composer
On this page you can find all versions of the php package jaclise/yii2-gii. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package yii2-gii
Yii2-gii for Chinese
主要针对中文和项目的优化
default模板
CRUD
- 减少翻译标签,将Create Post分开成Create和Post,翻译文件的标签大大减少
- 针对Adminlte减少h1标签
- 针对鉴权提供can函数,默认注释
- controller.php增加对status的支持
- controller.php Create部分会加载数据库默认,Delete会将状态设置为STATUS_DELETE
- search.php增加排序,按照sort_order升序, create_at降序
Model
- 增加beforeSave和afterSave两个函数,默认为注释掉的
- 增加状态信息,以及$_statusLabel,并增加两个函数getArrayStatus和getStatusLabel
Usage
1.在生成的视图index.php替换'status'
2.在生成的视图_form.php替换如下代码
3.在生成的视图view.php替换'status'
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
在main-local.php中配置:
在gii新建模板时会多出一个选项。
如果要统一输出显示的日期时间格式,修改config/main.php
All versions of yii2-gii with dependencies
PHP Build Version
Package Version
Requires
yiisoft/yii2 Version
*
The package jaclise/yii2-gii contains the following files
Loading the files please wait ....