访问frontend_dev.php出现“you are not allowed to access this file. check frontend_dev.php for more information.”错误。
1.修改frontend_dev.php
//添加这句
$ip = $_SERVER['REMOTE_ADDR'];
// this check prevents access to debug front controllers that are deployed by accident to production servers.
// feel free to remove this, extend it or make something more sophisticated.
//修改这句
if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1',$ip)))