
刚看了一下Yii,安装文档上说的,添加gii module,但是添加下面代码后,访问 index.php?r=gii 弹出登录框输入密码后不能登录,还是在index.php?r=gii/default/login页面。看请求有一个index.php?r=gii 的请求,返回302。
```$config['bootstrap'][] = 'gii';$config['modules']['gii'] = [ 'class' => 'yiigiiModule', // uncomment the following to add your IP if you are not connecting from localhost. 'allowedIPs' => ['127.0.0.1', '::1'], //允许访问的ip是本地ip,修改为所有ip均可访问。];````````$config['bootstrap'][] = 'gii';$config['modules']['gii'] = [ 'class' => 'yiigiiModule', // uncomment the following to add your IP if you are not connecting from localhost. 'allowedIPs' => ['*', '::1'], //允许访问的ip是本地ip,修改为所有ip均可访问。];```
创想鸟,大量的免费yii入门教程,欢迎在线学习!
以上就是yii中的gii打不开怎么办的详细内容,更多请关注创想鸟其它相关文章!
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 chuangxiangniao@163.com 举报,一经查实,本站将立刻删除。
发布者:程序猿,转转请注明出处:https://www.chuangxiangniao.com/p/106327.html
微信扫一扫
支付宝扫一扫