Great, this worked! Thanks!

On Apr 17, 5:54 pm, "dr. Hannibal Lecter" <lecter...@gmail.com> wrote:
> Yup...
>
> https://trac.cakephp.org/ticket/6218
>
> On Apr 17, 8:38 am, George H <acher...@gmail.com> wrote:
>
> > Hi guys,
>
> > I have a list of users displayed in my view in a table, and the
> > resultset is parsed by Paginator.  I am also echoing $paginator->sort
> > () in my view.
>
> > When I view the page the links work and they sort by the columns that
> > I have specified in my code. But I thought that if I was to click on
> > the same column again (eg. sorting by last logged in date) that it
> > would sort in descending order, click again sort ascending, etc. It's
> > not doing this – it just sticks to ascending order only.
>
> > Is this the way it supposed to work? In the documentation (http://
> > api.cakephp.org/class/paginator-helper#method-PaginatorHelpersort) it
> > says under return:
>
> > "string A link sorting default by 'asc'. If the resultset is sorted
> > 'asc' by the specified key the returned link will sort by 'desc'."
>
> > I've taken this to interpret as the link is like a toggle, but in my
> > case this isn't the case.
>
> > You can see my code here:http://pastebin.com/f64b7e200
>
> > TIA.
> > -- George
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to