CodeIgniter Forums

Full Version: Page for [An Error Was Encountered]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Sry for my english  Angel

How do I change a page for ERROR: An Error Was Encountered
This error occurs when characters are invalid. ( For example:!@df )

I know that CI have static file: \application\views\errors\cli

But I want to show controller. It's real?

Something like this?
$route['404_override'] = 'controllername';
Quote:This route indicates which controller class should be loaded if the requested controller is not found. It will override the default 404 error page. Same per-directory rules as with ‘default_controller’ apply here as well.

It won’t affect to the show_404() function, which will continue loading the default error_404.php file at application/views/errors/error_404.php.