Home  >  Article  >  PHP Framework  >  gii cannot be accessed in yii framework

gii cannot be accessed in yii framework

王林
王林Original
2020-02-26 16:49:462591browse

gii cannot be accessed in yii framework

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn