Yii2.0关闭自带的debug功能时间:2023-03-09 20:45:00 1、找到相应模块的config文件夹的main-local.php文件注释相关代码,如下: 2、将web下面的两个入口文件改成false index.php index-test.php