try catch block at Zend Framework top level

You’d like for the production server that no exceptions are visible on the site. That sounds reasonable! If there is some exception you’d like to see it only on your developer server. So in your index.php or whatever the index of the Zend Framework file is just add a try/catch construction and in the catch simply don’t output anything!

Related posts:

  1. Secure Forms with Zend Framework
  2. Setting Up Zend Framework with Modules
  3. Zend Framework: Cache Database Table Schemes
This entry was posted in micro tutorial, zend framework and tagged , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">