Welcome Guest, Not a member yet? Register   Sign In
friendly url's
#1

[eluser]Scott Boyde[/eluser]
I have a url that reads

/team/viewteam/1/1/2.html

each segment represents league/division/team, I wanted to replace the id values with the relevant names

I have been able to user str_replace and preg_replace so that I can have the team name displayed without the spaces.

so /team/viewteam/1/1/2.html becomes /team/viewteam/1/1/BarnUtd.html

What I would like to do now is only display /team/viewteam/BarnUtd.html

Is there any way that I can pass the 1/1 league/division into the controller as I need these to get the appropriate data from the DB tables.


Messages In This Thread
friendly url's - by El Forum - 08-14-2008, 09:52 AM
friendly url's - by El Forum - 08-21-2008, 09:40 AM
friendly url's - by El Forum - 08-21-2008, 09:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB