[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?