Re: Use of $conditions

2007-05-08 Thread NOSLOW
Just wanted to point out a few things I noticed: - know your parameters: findAll($conditions=null, $fields=null, $order=null, $limit=null, $page=1, $recursive=null) - the conditions parameter for functions such as findAll is for, well, conditions (the "where" clause in SQL)... not sorting. Use th

Re: Use of $conditions

2007-05-06 Thread k4mg
Thanks a lot, worked perfectly. Barry On Apr 30, 6:26 pm, rtconner <[EMAIL PROTECTED]> wrote: > 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]>

Re: Use of $conditions

2007-04-30 Thread rtconner
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

Use of $conditions

2007-04-30 Thread k4mg
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 see