Hello,
try this in your controller:
var $paginate = array('limit' => 100, 'page' => 1, 'order' => 'DESC');
Andras Kende
http://www.kende.com
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Tim W
Sent: Tuesday, May 06, 2008 9:26 AM
To: CakePHP
Subject: Making Paginator first sort direction DESC
Hi all,
Paginator's great, like the rest of Cake, but there's one little thing
I haven't been able to work out. By default when you click on a column
to sort it will sort ASC (ascending), but i'd like the first sort to
be DESC (descending). The options suggest this might be possible, but
I haven't worked it out. Does anyone know if this is possible?
Thanks
TIm
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---