关于Zend Framework中异常处理的几个资料

      在Zend Framework中,对异常的使用,整理思路体现其官方Reference Guide的此段描述中:


The MVC components in Zend Framework utilize a Front Controller, which means that all requests to a given site will go through a single entry point. As a result, all exceptions bubble up to the Front Controller eventually, allowing the developer to handle them in a single location.

However, exception messages and backtrace information often contain sensitive system information, such as SQL statements, file locations, and more. To help protect your site, by default Zend_Controller_Front catches all exceptions and registers them with the response object; in turn, by default, the response object does not display exception messages. 


      了解Zend Framework中对异常的使用,首先参考官方的资料进行了解:

      http://framework.zend.com/manual/1.12/en/zend.controller.exceptions.html


      另外,下面的几个web,是在Google中找到的几个实际使用的示例:

      1.Zend Framework 错误处理

      2.Zend Framework 异常处理及 404/500 错误页面

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值