在Yii2版本的advanced高级模板环境中:设置404自定义页面的方法 。1、configmain.php文件 errorHandler => [errorAction => siteerror,],相关文章教程推荐: