yii2框架,開(kāi)啟debug后沒(méi)有顯示調(diào)試工具欄,線上環(huán)境不顯示,但是線下是可以顯示的如圖,線下顯示了,線上無(wú),代碼上傳到線上后,只修改了數(shù)據(jù)庫(kù)配置,其他未改
我在配置中web.php中配置了ip,然后也沒(méi)有作用,如下
if (YII_ENV_DEV) {
// configuration adjustments for 'dev' environment
$config['bootstrap'][] = 'debug';
$config['modules']['debug'] = [
'class' => 'yii\debug\Module',
// uncomment the following to add your IP if you are not connecting from localhost.
'allowedIPs' => ['127.0.0.1', '我的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' => ['127.0.0.1', '我的IP'],
];
}
- 1 回答
- 0 關(guān)注
- 1615 瀏覽
添加回答
舉報(bào)
0/150
提交
取消