The url structure on my website (in progress) is pretty complicated and I've
been having some trouble getting pagination to display urls that are less
messy.
The routes that is currently used for the page I'm having trouble with is as
follows:
Router::connect('/:console/:arena/:controller/:slug/:action/*', array(),
array('console' => "ps3|360"));
So an example url would be something like:
http://domain.com/ps3/blackops/ladders/clan
On top of that I have a query variable to make the url:
http://domain.com/ps3/blackops/ladders/clan
The URL's that the paginator is coming out with are:
http://domain.com/ps3/blackops/ladders/clan/view/page:2/sort:Clan.name/direction:asc?season=3
As you can see it's pretty long winded (plus colons in the url look
horrible) and I was hoping to improve it. First of all I'd like to get rid
of the view action from the url. And then either by switching the pagination
to use Query Variables (like my season variable) or by switching to a url
format like:
http://domain.com/ps3/blackops/ladders/clan/season-3/2/Clan.name/asc
Even that doesn't look too appealing. I'm using Jquery so it doesn't
physically go to those pages but I'd still like to sort out the url's it's
using. Presumably it'd need a new route defining but I'm not sure how I'd
approach that route.
Any help provided would be greatly appreciated.
Robert
--
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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php