/2020/11/62b987c3.jpg
解决方法:
加上 'allowedIPs'=>['*']即可。
(推荐教程:yii框架)
如下:
if (!YII_ENV_TEST) { // configuration adjustments for 'dev' environment $config['bootstrap'][] = 'debug'; $config['modules']['debug'] = [ 'class' => 'yii\debug\Module', 'allowedIPs'=>['*'] ]; $config['bootstrap'][] = 'gii'; $config['modules']['gii'] = [ 'class' => 'yii\gii\Module', 'allowedIPs'=>['*'] ]; }
更多编程相关内容,请关注北冥有鱼编程入门栏目!
以上就是yii框架中无法访问gii的详细内容,更多请关注北冥有鱼其它相关文章!
本文转载自【PHP中文网】,希望能给您带来帮助,苟日新、日日新、又日新,生命不息,学习不止。