關於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 錯誤頁面

發佈了96 篇原創文章 · 獲贊 1 · 訪問量 8061
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章