[solved] need help to write routes - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7) +--- Forum: Addins (https://forum.codeigniter.com/forumdisplay.php?fid=13) +--- Thread: [solved] need help to write routes (/showthread.php?tid=65806) |
[solved] need help to write routes - jaynarayan - 07-26-2016 hi, i am using ci3 with wiredsign's hmvc. i have the users modules with two controllers 1) public_user 2)admin_user these are theĀ routes PHP Code: $route['admin/users'] = 'users/admin'; is there any way to achieve this without writing routes for each URL individually ? i tried this but not working PHP Code: $route['([a-zA-Z_-\/]+)admin/users([a-zA-Z_-\/]+)'] = '$1users/admin$2'; RE: need help to write routes - jaynarayan - 07-27-2016 solution: PHP Code: $route['admin/users(.*)'] = 'users/admin$1'; |