【原创】zendframework 错误控制 打造友好404错误页面
2008年12月18日
1 条评论
原创笔记,转载请注明来源
在index.php 入口文件处这样设置
1 2 3 | $frontController = Zend_Controller_Front::getInstance(); $frontController->setParam('noErrorHandler',false); $frontController->throwExceptions(false);//关闭抛出异常 |
然后再 app/controller 里建立 ErrorController.php
阅读全文…
原创文章,转载请注明: 转载自DevNotes: Development with Notes