Welcome Guest, Not a member yet? Register   Sign In
Page for [An Error Was Encountered]
#1

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: http://new-project.dev/s!@df )

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

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


Thx.
Reply
#2

Something like this?  https://www.codeigniter.com/userguide3/g...uting.html
Code:
$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.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB