Welcome Guest, Not a member yet? Register   Sign In
How to exit() ?
#1

[eluser]Buso[/eluser]
My problem is I would like to do something like loading a view and then exit, but without losing things like the profiler, the hooks, the error logging, and so on.

If the load->view is called from the usual place (the 'outer' method in my controller. I mean, no other method is calling it), and I want to end the applicationt there, I just use 'return;'. Then the method returns to wherever codeigniter is calling it from, and continues doing its own stuff.
But what happens if I wanna exit from other place? A constructor, for instance.
If I use 'return;', my application won't stop there. And if I use exit, the above mentioned problems will occur (no profiler, etc).

Any suggestions?


Messages In This Thread
How to exit() ? - by El Forum - 04-22-2010, 06:05 AM
How to exit() ? - by El Forum - 04-22-2010, 09:27 AM
How to exit() ? - by El Forum - 04-22-2010, 10:11 AM
How to exit() ? - by El Forum - 04-22-2010, 10:27 AM
How to exit() ? - by El Forum - 04-22-2010, 10:38 AM
How to exit() ? - by El Forum - 04-22-2010, 10:52 AM
How to exit() ? - by El Forum - 04-22-2010, 10:59 AM
How to exit() ? - by El Forum - 04-22-2010, 11:19 AM
How to exit() ? - by El Forum - 04-22-2010, 11:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB