什么是Gii?简要解释

Gii是Yii 2.0中引入的自动代码生成工具。 Gii中的代码生成非常简单, 只需按照说明填写正确的信息即可。


启动Gii

默认情况下, 由于Yii入口脚本web / index.php文件中的以下代码, 始终在开发模式下启用Gii:

define(‘YII_ENV’)或define(‘YII_ENV’, ‘dev’);

http://localhost/advanced2/frontend/web/index.php?r = gii

YII什么是Gii 1

这是Gii的输出。从这里你可以自动生成代码。

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_46607.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?