• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Page for [An Error Was Encountered]

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?


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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.