它给了我错误。
错误403不允许您访问此页面。
我已经在受保护目录内的main.php文件中取消了对此代码的注释。
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'admin',
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
),请帮帮忙。
发布于 2013-06-05 23:03:41
以下是您的问题的解决方案:
http://www.yiiframework.com/wiki/115/why-do-i-get-a-403-error-when-trying-to-use-gii/
您需要将您的ip地址添加到'ipFilters‘数组
'ipFilters' => array('127.0.0.1', 'your_ip_address')发布于 2013-06-05 22:50:31
你正在使用localhost访问gii吗?您是否能够使用localhost访问本地Are服务器?如果您没有将localhost映射到127.0.0.1,则无法使用localhost访问您的way服务器,这在大多数情况下是默认的,具体取决于您的系统和php / apache的安装方式
发布于 2013-10-03 14:47:41
'ipFilters'=>array('127.0.0.1','*.*.*.*')然后关闭它或将其改回...
因为如果你不这样做..。孩子们会把你打倒的
https://stackoverflow.com/questions/16942771
复制相似问题