Welcome Guest, Not a member yet? Register   Sign In
Extending CodeIgniter’s Exceptions Class
#3

[eluser]Jelmer[/eluser]
The difference is that he's calling show_404() and show_error() manually and your behavior is probably pre-controller. Once your routing succeeds CI is loaded and you can reference the CI superobject, if your routing fails the CI superobject is never loaded and can't be referenced. Which means that referencing the CI superobject in your Exceptions class is actually a pretty bad idea as it might cause an extra error on its own when an error is thrown pre-controller.


Messages In This Thread
Extending CodeIgniter’s Exceptions Class - by El Forum - 02-17-2010, 09:27 AM
Extending CodeIgniter’s Exceptions Class - by El Forum - 04-14-2010, 05:46 AM
Extending CodeIgniter’s Exceptions Class - by El Forum - 04-14-2010, 07:41 AM
Extending CodeIgniter’s Exceptions Class - by El Forum - 04-14-2010, 07:46 AM
Extending CodeIgniter’s Exceptions Class - by El Forum - 04-14-2010, 08:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB