刚看了一下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均可访问。 ]; ```
Gxlcms,大量的免费yii入门教程,欢迎在线学习!
Copyright © 2019- worldimage.cn 版权所有 湘ICP备2024080961号-5
违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务