最新消息: 新版网站上线了!!!

yii2 配置gii的方法

if (YII_ENV_DEV) {
    // configuration adjustments for 'dev' environment
     $config['bootstrap'][] = 'debug';
     $config['modules']['debug'] = [
                'class' => 'yii\gii\Module',
                'allowedIPs' => ['127.0.0.1', '::1','10.1.192.258'],  // 258 is test ip
        ];
 
    $config['bootstrap'][] = 'gii';
    $config['modules']['gii'] = [
                'class' => 'yii\gii\Module',
                'allowedIPs' => ['127.0.0.1', '::1','10.1.192.258'], // 258 is test ip
        ];
}

转载请注明:谷谷点程序 » yii2 配置gii的方法