Is it possible to turn off the errors on a single view in codeigniter.
Right now I am still developing, and my default landing page is something of a splash screen of sorts, so while Im developing I randomly break my script all the way down the run and it shows up on any view. With that I need to turn it off just on that one view, since the rest of the site is behind that and theres no links or references otherwise leading anywhere into the build currently.
I don’t want to turn off all errors for obvious reasons. But i need them off on that one page.
In the controller or view for which you want to disable error display, do
After invoking the view, you can do:
to make errors appear again (assuming your default setting is to display errors).
More details:
http://www.php.net/manual/en/configuration.changes.php