yii2 the use statement with non-compound name yii'has no effect 怎么解决

如题所述

第1个回答  2020-11-30
在入口文件web/index.php文件最前面定义错误级别低一点就好了
error_reporting(E_ALL^E_NOTICE^E_WARNING);