Danson
- Danson 赞了回答
在config下面的web.php文件里面有段代码是:
if(YII_ENV_DEV) { // configuration adjustments for 'dev' environment $config['bootstrap'][] = 'debug'; $config['modules']['debug'] = 'yii\debug\Module'; $config['bootstrap'][] = 'gii'; $config['modules']['gii'] = 'yii\gii\Module'; }
将这段代码的if条件取反即可!
或者在您提供的代码里,常量YII_DEBUG的值设为false亦可。
希望可以帮到您!20150330鬼一浪人
- Danson 赞了教程Yii2.0 实现三级联动