Welcome Guest, Not a member yet? Register   Sign In
404 Override Not Working
#9

(06-20-2017, 02:00 AM)Martin7483 Wrote: Viewing the Core code, setting a custom 404_override in ./config/routes.php does not change how the show_404() method is used.

The override is used for when your Controller can not be located. It will then load the Controller that is set in the config value.
This is not what is happening in your case, because CI can locate the controller.

Look at the docs https://codeigniter.com/user_guide/gener...l#show_404

What you need todo is create your own show_404 method or redirect to your custom Notfound controller instead of calling show_404 and pass along any needed arguments

Thanks for that will look into it.
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply


Messages In This Thread
404 Override Not Working - by wolfgang1983 - 06-20-2017, 01:18 AM
RE: 404 Override Not Working - by reactionstudio - 06-20-2017, 01:32 AM
RE: 404 Override Not Working - by wolfgang1983 - 06-20-2017, 01:33 AM
RE: 404 Override Not Working - by reactionstudio - 06-20-2017, 01:49 AM
RE: 404 Override Not Working - by wolfgang1983 - 06-20-2017, 01:59 AM
RE: 404 Override Not Working - by reactionstudio - 06-20-2017, 01:52 AM
RE: 404 Override Not Working - by wolfgang1983 - 06-20-2017, 02:00 AM
RE: 404 Override Not Working - by Martin7483 - 06-20-2017, 02:00 AM
RE: 404 Override Not Working - by wolfgang1983 - 06-20-2017, 02:03 AM
RE: 404 Override Not Working - by reactionstudio - 06-20-2017, 02:05 AM
RE: 404 Override Not Working - by wolfgang1983 - 06-20-2017, 02:12 AM
RE: 404 Override Not Working - by Martin7483 - 06-20-2017, 02:21 AM
RE: 404 Override Not Working - by reactionstudio - 06-20-2017, 02:37 AM
RE: 404 Override Not Working - by Martin7483 - 06-20-2017, 02:10 AM
RE: 404 Override Not Working - by Martin7483 - 06-20-2017, 02:54 AM
RE: 404 Override Not Working - by reactionstudio - 06-20-2017, 03:26 AM
RE: 404 Override Not Working - by Martin7483 - 06-20-2017, 04:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB