[solved] need help to write routes |
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'; ![]() ![]() Learning best practices Rate my post if you found it helpfull
solution:
PHP Code: $route['admin/users(.*)'] = 'users/admin$1'; ![]() ![]() Learning best practices Rate my post if you found it helpfull |
Welcome Guest, Not a member yet? Register Sign In |