thinkphp笔记:错误页面定制

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

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

 

posted on 2015-03-31 11:49  阳雪凌空  阅读(166)  评论(0编辑  收藏  举报

导航