[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.