Re: paginate order A-Z and Z-A...I thought it was easy...

2009-02-05 Thread Mike Cook
I was hoping to make things a little more user friendly by providing specific links for the direction. For now I will let Paginator control this in its default mode, but I'll certainly keep looking for other ways to do this. Thanks for your help Martin. On Feb 4, 11:57 am, Martin Westin wrote

Re: paginate order A-Z and Z-A...I thought it was easy...

2009-02-04 Thread Martin Westin
I don't think you can decide the direction in that way. Even though sortDir() has an options parameter and a directions key it looks for when you use sort() the options do not get passed along to sortDir() http://api.cakephp.org/view_source/paginator-helper/#line-163 http://api.cakephp.org/vi

paginate order A-Z and Z-A...I thought it was easy...

2009-02-03 Thread Mike Cook
I'm rather new to cake and I'm having trouble understanding how to have a simple sort on a title field using the pagenator. All I need is two links, one ascending and the other descending -- Title (ASC) | Title (DESC) At first I thought I could just set sort/direction, but perhaps doing this fro