时间:2021-07-01 10:21:17 帮助过:23人阅读

解决方法:
加上 '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'=>['*']
];
}更多编程相关内容,请关注Gxlcms编程入门栏目!
以上就是yii框架中无法访问gii的详细内容,更多请关注Gxlcms其它相关文章!