I installed HMVC by wiredesignz but the routes from application/modules/xxx/config/routes.php
didn't get recognized at all.
Here is an example:
In application/modules/pages/config/routes.php
I have:
$route['pages/admin/(:any)'] = 'admin/$1';
$route['pages/admin'] = 'admin';
If I type the URL, domain.com/admin/pages/create
it is not working, the CI 404 Page not found appears.
If I move the routes to application/config/routes.php
it works just fine.
How do I make it work without putting all the admin routes in main routes.php
?
I searched the web for over 4 hours but found no answers regarding this problem. I already checked if routes.php
from modules is loading and is working just fine, but any routes I put inside won't work.