Welcome Guest, Not a member yet? Register   Sign In
HMVC Routes 404 Over Ride??
#1

I would like why in HMVC you can do this in routes on default controller.

Works fine with HMVC

PHP Code:
$route['default_controller'] = 'catalog/common/home/index'


But when use 404 over ride

Does not pick up.

PHP Code:
$route['404_override'] = 'admin/error/not_found/index'


I would of thought that because you could do it for default controller you should of been able to do it for 404 over ride.

I just need 404 pages to be in sub folders. But do not want to touch system folders.
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply
Reply
#3

(11-22-2015, 01:57 AM)Martin7483 Wrote: See this
http://forum.codeigniter.com/thread-6344...#pid324999

That is for normal codeigniter I am now using HMVC but don't really want to touch the system files, for changing 404
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply
#4

(This post was last modified: 11-22-2015, 02:41 AM by Martin7483.)

And that is my point, you can't because of where the 404 check is done.

You could use the default 404 as a redirect to your custom 404.

Or create a 404 module within your HMVC and call it's controller from the default 404.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB