yii中的gii打不开怎么办

互联网 19-11-9

刚看了一下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' => 'yii\gii\Module',     // 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' => 'yii\gii\Module',     // uncomment the following to add your IP if you are not connecting from localhost.     'allowedIPs' => ['*', '::1'], //允许访问的ip是本地ip,修改为所有ip均可访问。 ]; ```

php中文网,大量的免费yii入门教程,欢迎在线学习!

以上就是yii中的gii打不开怎么办的详细内容,更多内容请关注技术你好其它相关文章!

来源链接:
免责声明:
1.资讯内容不构成投资建议,投资者应独立决策并自行承担风险
2.本文版权归属原作所有,仅代表作者本人观点,不代表本站的观点或立场
标签: 打不开
上一篇:php获取远程图片并下载保存到本地的方法分析 下一篇:yii自带验证码怎么做

相关资讯