[eluser]Unknown[/eluser]
Hi all,
When I put an exit() right after loading a view, I get a blank page. Anybody knows what might cause this?
The use case is i don't use the show_error() function provided by CI. I have my own to show an error w/ the same template as the rest of the app. If the controller execute normally it would render the designated template, but if we have some exception, it should render the customized error page and exit. Putting the exit right after the load $this->load->view() result into a blank page instead.
Does the controller has some unfinished tasks to wrap up? What is then a good way to abort the program and after showing an pretty error and performs some error logging.
Thanks