Welcome Guest, Not a member yet? Register   Sign In
URI Routing
#5

[eluser]_mtr[/eluser]
OK, the car example was stupid. Let's just drop the pretense, here's what I'm doing:

It's an app that delivers basketball statistical info. For example, if I wanted info on the 1993 Chicago Bulls, I'd end up at www.example.com/teams/bulls/1993.

Here, I think a teams controller would be the right way to go (but what do I know). I'm not concerned about adding, deleting, or editing info, just displaying it. There's a list of teams, click through for a list of seasons for a particular team, click through again for info on an individual season for a team.

My teams controller has a lookup function that pulls a team's seasons from the DB (www.example.com/teams/bulls), but I can't figure out how to pass the season as a variable, thus producing the info for the individual season.

I hope this makes some sort of sense.


Messages In This Thread
URI Routing - by El Forum - 08-23-2009, 08:39 PM
URI Routing - by El Forum - 08-24-2009, 02:46 PM
URI Routing - by El Forum - 08-24-2009, 06:55 PM
URI Routing - by El Forum - 08-24-2009, 07:26 PM
URI Routing - by El Forum - 08-24-2009, 07:37 PM
URI Routing - by El Forum - 08-24-2009, 07:50 PM
URI Routing - by El Forum - 08-24-2009, 07:58 PM
URI Routing - by El Forum - 08-25-2009, 05:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB