title: PHP: How can we disable exception messages on production website and keep them in dev?
body: <p>How can be disable exception messages on the production website  and keep them in dev?</p>
  
  <p>Example:</p>
  
  <pre><code>try{
    //some code
  }
  
  catch(Exception $e){
     echo $e.getMessage();
  }
  </code></pre>
  
  <hr>
  
  <p><strong><em>Edit</em>:</strong></p>
  
  <p>How it done on <strong>Zend Framework</strong>? (.ini file but what about exception code that should be write?)</p>
  
  <p><strong>Edit 2:</strong></p>
  
  <p>If my example can't work how zend framework disable exception messages in application.ini?</p>
  
  <pre><code>resources.frontController.params.displayExceptions = 0
  </code></pre>