URL Routing 2 IDs

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:
$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?

Go through this user guide information...

Passing URI Segments to your Functions: http://ellislab.com/codeigniter/user-gui...llers.html

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.