我的入口文件已經是正式環境了。。。但是為什么還會有調試條呢?
2 回答

慕標琳琳
TA貢獻1830條經驗 獲得超9個贊
你要在配置文件中要找到的調試條的配置
$config['bootstrap'][] = 'debug'; $config['modules']['debug'] = 'yii\debug\Module';
比如我本地main-local.php
if (!YII_ENV_TEST) { // configuration adjustments for 'dev' environment $config['bootstrap'][] = 'debug'; $config['modules']['debug'] = 'yii\debug\Module'; $config['bootstrap'][] = 'gii'; $config['modules']['gii'] = 'yii\gii\Module'; }return $config;
- 2 回答
- 0 關注
- 1033 瀏覽
添加回答
舉報
0/150
提交
取消