I need to load a head view and a foot view in all my pages. But show_error
uses its own complete template. And it stops execution after it loads this template, so t
You can create a custom layout to the error messages in the application/errors
directory.
EDIT:
If you want to use your existing files you can do one of the following:
config/route.php
under $route['404_override']
.CI_Exceptions
class with MY_Exceptions
and using plain PHP, redirect the user to the appropriate page. The exceptions class is loaded before the controller so you cannot use get_instance()
.