Welcome Guest, Not a member yet? Register   Sign In
404_override controller cannot be in subfolder
#1

[eluser]sehummel[/eluser]
I spent three days banging my head against the wall trying to figure out why my 404 page would not load when there was no controller for that route. What it finally came down to was that for this route:

Code:
$route['404_override'] = "misc/route_map";
(folder/controller)

CI was reading misc as the controller name. When I moved route_map to the root controllers folder, everything worked right. You should be able to place a 404_override controller in a subfolder. This contradicts what is written in the routes.php file. The folder/controller mapping works perfectly in the rest of the site.

I am running version 2.1 of CI and have properly upgraded from 2.02.


Messages In This Thread
404_override controller cannot be in subfolder - by El Forum - 01-18-2012, 01:03 PM
404_override controller cannot be in subfolder - by El Forum - 01-18-2012, 02:00 PM
404_override controller cannot be in subfolder - by El Forum - 01-18-2012, 02:03 PM
404_override controller cannot be in subfolder - by El Forum - 01-18-2012, 04:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB