So I have a codeigniter helper that determines wether the signed request is from mobile or not. and so I would like that my url routes to different controllers when there is mobile request.
for example
if (get_request() === 'mobile')
$route['u/a/(:any)'] = "mobile/usr/main_controller/game_detail/$1";
else
$route['u/a/(:any)'] = "pc/usr/main_controller/game_detail/$1";
thanks in advance!