I am using HMVC and created a module called user. Inside modules/user/config directory, I have routes.php, using the same format as application/config/routes.php.
In application/config/routes.php I have the following route:
$route['login'] = 'user/login';
This works great, buit when I move it to application/modules/user/config/routes.php, it does not work. I get a 404 error.
According to HMVC docs (https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc), you have to create routes as follows:
$route['module_name'] = 'controller_name';
This means I will have to do it like this:
$route['user'] = 'user';
This causes the 404, however, even if I did not get the 404, this is not quite what I have in mind. I still want to keep my routing to work as /login goes to user/login.
Any ideas would be greatly appreciated!
Thanks!