yii框架中无法访问gii

yii框架中无法访问gii

解决方法:

加上  ‘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'=>['*']     ]; }

更多编程相关内容,请关注php中文网yii框架栏目!

© 版权声明
THE END
喜欢就支持一下吧
点赞14 分享