[eluser]JustinWyllie[/eluser]
Hi
I want to do something like this:
try {
something
}
catch (\Exception $e) {
$this->load->view('error');
}
further code which is not executed
The problem is if I put an exit statement after loading the error view the layout is not loaded. But I if I don't then the rest of the code is executed.
How do I load a view and the layout and then stop?
Thanks
-JustinWyllie