Welcome Guest, Not a member yet? Register   Sign In
URL Routing 2 IDs
#1

[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:
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?
#2

[eluser]mi6crazyheart[/eluser]
Go through this user guide information...

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




Theme © iAndrew 2016 - Forum software by © MyBB