解決方法:
加上??‘allowedIPs’=>[‘*’]即可。
(推薦教程:yii框架)
如下:
if?(!YII_ENV_TEST)?{ ????//?configuration?adjustments?for?'dev'?environment ????$config['bootstrap'][]?=?'debug'; ????$config['modules']['debug']?=?[ ????????'class'?=>?'yiidebugModule', ????????'allowedIPs'=>['*'] ????]; ????$config['bootstrap'][]?=?'gii'; ????$config['modules']['gii']?=?[ ????????'class'?=>?'yiigiiModule', ????????'allowedIPs'=>['*'] ????]; }
? 版權聲明
文章版權歸作者所有,未經允許請勿轉載。
THE END