I have searched the archives on the board, the cookbook, and even looked at the pagination source file but can not figure out an answer (I'm not very good at this stuff). I have a model/database table/ baked views application that is named hours and has fields "id", "date", and "hours".
I want to have the index view automatically sort the id or date field in DESC order, so when I view the hours it will have the newest record first. Thanks, I have tried the sort key in the controller but can't see to get the options or params right to get it to work with the pagination, and I'm not sure how to determine what the options are. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
