Welcome Guest, Not a member yet? Register   Sign In
show_404() doesn't use my custom 404 page
#2

(This post was last modified: 09-06-2016, 06:28 AM by Tecvid.)

this is imposible until u will override the show_404() function, from the user_guide:

You are encouraged to always have a default route as otherwise a 404 page will appear by default.
PHP Code:
$route['404_override'] = ''
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


Messages In This Thread
RE: show_404() doesn't use my custom 404 page - by Tecvid - 09-06-2016, 06:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB