Saturday, May 28, 2011

Re: Routing with Query Strings

And an extra question continuing from the above post concerning pagination
and it's urls.

Currently using the url format mentioned in my above post it's coming up
with:
ps3/blackops/ladders/clan/view/page:1/sort:rank/direction:asc?season=3

where as I'd prefer the paginator to use the query string rather than named
parameters. Those named parameters look horrible. Is there a way to get it
to do this? i.e I'd prefer the below:
/ps3/blackops/ladders/clan?season=3&page=1&sort=rank&direction=asc

Alternatively if I could get rid of the 'page:' stuff it would probably
suffice too. Something like:
/ps3/blackops/ladders/clan/3/1/rank/asc
though I imagine it wouldn't like me not having the action in the url and
it's not very user friendly in the sense they wouldn't know how the numbers
correlate.

--
View this message in context: http://cakephp.1045679.n5.nabble.com/Routing-with-Query-Strings-tp4433697p4435721.html
Sent from the CakePHP mailing list archive at Nabble.com.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: