06-18-2010, 04:56 PM
[eluser]Unknown[/eluser]
I am trying to route my website so that each game ID displays its respective game. So I could route it to www.mysite.com/game_id, but I want to add the client id to it as well so it would look like www.mysite.com/client_id/game_id (e.g. www.mysite.com/gba/23). The client ID can be any mix of letters while the game ID can be any number.
My only idea was to do:
But I am thinking that it would mess up the routing of all other controllers. Is there a way to route this properly?
I am trying to route my website so that each game ID displays its respective game. So I could route it to www.mysite.com/game_id, but I want to add the client id to it as well so it would look like www.mysite.com/client_id/game_id (e.g. www.mysite.com/gba/23). The client ID can be any mix of letters while the game ID can be any number.
My only idea was to do:
Code:
$route[':any/(:num)'] = "game_start";
But I am thinking that it would mess up the routing of all other controllers. Is there a way to route this properly?