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 from the index view is not correct (I tried various combinations
but without any luck);

echo $paginator->sort( 'Title (DESC)', 'title', array
('direction'=>'desc') );


I've searched through a bunch of threads (such as "Probably a
ridiculously easy-to-solve problem with 1.2's paginate") and from what
I could see you can set the direction in the controller, but this
seems to be fixed one way or the other.

I was hoping someone could give me directions (pun completely
intended ;) on how to pass these params.


Thanks for your help.

Mike

--~--~---------~--~----~------------~-------~--~----~
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