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

gii cannot be accessed in yii framework

王林
Release: 2020-02-26 16:49:46
Original
2688 people have browsed it

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'=>['*']
    ];
}
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template