I always thought the docs were a little shady on this. To do what you want to do...
$this->Program->findAll(null, null, 'p_date DESC, p_time ASC') On Apr 30, 3:01 pm, k4mg <[EMAIL PROTECTED]> wrote: > I have made a simple (my first!) application using CakePHP and Bake. > It works fine, but I am unable to figure out how to add two more > capabilities. I would like to have my List view in order, and > paginated so that the headers are always available. For the first, > reading the documentation, it seems I should use $conditions as I did > below. Of course, the list is still in as entered order, not sorted. > Any help/examples for this and the pagination would be appreciated. > > class ProgramsController extends AppController { > > var $name = 'Programs'; > var $conditions = "ORDER BY p_date, p_time"; > var $title_for_layout = 'Lake-Sumter Computer Society'; > var $helpers = array('Html', 'Form' ); > > function index() { > $this->Program->recursive = 0; > $this->set('programs', $this->Program->findAll($conditions)); > } > Barry --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---