thinkphp笔记:错误页面定制

1.在Conf->建立Index->建立config.php,在里面写配置文件return array(
//指定错误模板路径
'TMPL_EXCEPTION_FILE'=>'./public/Tpl/error.html'
);

2.在public里面新建Tpl->error.html;然后在error.html里面写想要的错误界面!

 

原文地址:https://www.cnblogs.com/hupengyin/p/4380420.html