php - Problems with Codeigniter HMVC subfolders -
i have encountered issue using subfolders codeigniter + hmvc.
/system/application/modules/welcome/controllers/staff/welcome.php
to access have access via http://www.app.com/welcome/staff/welcome
unfortunately doesn't fit rest of url structure.
how can remove first welcome url url http://www.app.com/staff/welcome
i have tried adding route within module:
/system/application/modules/welcome/config/routes.php
like:
$route['staff/welcome'] = "welcome/staff/welcome";
but unfortunately no luck.
adding route real codeigniter route file works feel adding code external of modules modules work misses point of adopting modularisation.
i hope able help.
thanks,
tim
this line in routes.php correct:
$route['staff/welcome'] = "welcome/staff/welcome";
you can try play order of routing rules, , put rule default controller ($route['default_controller'] = "home";) @ end. have project 4 modules , works fine me.
Comments
Post a Comment