Welcome Guest, Not a member yet? Register   Sign In
Help on the theory of taking my app multi-year
#6

[eluser]Kevv[/eluser]
I'd add a "year" method to your controller to do the filtering, so you'd have URLs like;

mysite.com/people/year/2009/

But being a fan of shorter URLs I'd also check for the presence of a year segment in the controller remap and route to that method directly so I could also have URLs like;

mysite.com/people/2009/

Of course if you think you may want to introduce other criteria down the line you might be better off not using the short version. While I prefer the shorter URL I doubt whether users care (or even notice) how the URL is structured quite so much as developers do Wink


Messages In This Thread
Help on the theory of taking my app multi-year - by El Forum - 05-02-2011, 09:48 PM
Help on the theory of taking my app multi-year - by El Forum - 05-03-2011, 02:27 AM
Help on the theory of taking my app multi-year - by El Forum - 05-03-2011, 05:10 AM
Help on the theory of taking my app multi-year - by El Forum - 05-03-2011, 05:13 AM
Help on the theory of taking my app multi-year - by El Forum - 05-03-2011, 05:42 AM
Help on the theory of taking my app multi-year - by El Forum - 05-06-2011, 04:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB