Solution:
Add 'allowedIPs'=>['*'].
(Recommended tutorial: yii framework)
is as follows:
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'=>['*'] ]; }
For more programming related content, please pay attention to the php Chinese websiteIntroduction to Programming Column!
The above is the detailed content of gii cannot be accessed in yii framework. For more information, please follow other related articles on the PHP Chinese website!