Page for [An Error Was Encountered] - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Page for [An Error Was Encountered] (/showthread.php?tid=68717) |
Page for [An Error Was Encountered] - RAMP - 08-16-2017 Sry for my english 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. RE: Page for [An Error Was Encountered] - JanFromHamburg - 08-23-2017 Something like this? https://www.codeigniter.com/userguide3/general/routing.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. |