Welcome Guest, Not a member yet? Register   Sign In
How to catch database exception and not display it to browser
#1

[eluser]chandrajatnika[/eluser]
In CodeIgniter, how to catch exception from query error or other database error, so I can customize exception behaviour like save it to log file or anything. And error that occured didn't displayed on browser, just a white blank or an error page without error description.

I've tried to create MY_DB_driver to overwrite CI_DB_driver display_error function, but I didn't work because CI_DB_driver is called from CI_Loader. I think it's to complicated for a simple job like this.
Could you tell me the easiest way to do this?

Regards


Messages In This Thread
How to catch database exception and not display it to browser - by El Forum - 03-23-2010, 09:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB