剛看了一下Yii,安裝文檔上說的,添加gii module, 但是添加下面代碼后,訪問 index.php?r=gii 彈出登錄框輸入密碼后不能登錄,還是在index.php?r=gii/default/login頁面??凑埱笥幸粋€index.php?r=gii 的請求,返回302.
```
$config['bootstrap'][] = 'gii';
$config['modules']['gii'] = [
? ? 'class' => 'yii\gii\Module',
? ? // uncomment the following to add your IP if you are not connecting from localhost.
? ? 'allowedIPs' => ['127.0.0.1', '::1'], //允許訪問的ip是本地ip,修改為所有ip均可訪問。
];
````
````
$config['bootstrap'][] = 'gii';
$config['modules']['gii'] = [
? ? 'class' => 'yii\gii\Module',
? ? // uncomment the following to add your IP if you are not connecting from localhost.
? ? 'allowedIPs' => ['*', '::1'], //允許訪問的ip是本地ip,修改為所有ip均可訪問。
];
```