views:

31

answers:

1

How can I set custom error levels with Zend Framework - say, I want to disable E_NOTICE.

Thanks.

+1  A: 

If you are using Zend_Application put the following line into your application.ini

phpsettings.error_reporting = E_ALL & ~E_NOTICE

You can also use error_reporting() in your bootstrap like so:

error_reporting(E_ALL & ~E_NOTICE);

The error reporting levels a documented in the PHP manual.

Benjamin Cremer
Thanks, adding a line in Bootstrap.php worked.
pMan