Re: Syntax for find()
Untested, but this should do the trick: $this-Place-find(all, array(order = array(account_status, name)); On Mon, Mar 16, 2009 at 11:47 PM, Chris M cmcclel...@yahoo.com.au wrote: Can someone provide the syntax for the find if I want to accomplish this: select * from places order by account_status, name A very basic question, but I'm only a newbie Cheers :) -- Stay connected to the people that matter most with a smarter inbox. Take a lookhttp://au.rd.yahoo.com/galaxy/mail/tagline2/*http://au.docs.yahoo.com/mail/smarterinbox . --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Syntax for find()
beginner too :P this page may help: http://book.cakephp.org/view/73/Retrieving-Your-Data On Tue, Mar 17, 2009 at 4:24 PM, Richard rclay...@gmail.com wrote: Untested, but this should do the trick: $this-Place-find(all, array(order = array(account_status, name)); On Mon, Mar 16, 2009 at 11:47 PM, Chris M cmcclel...@yahoo.com.au wrote: Can someone provide the syntax for the find if I want to accomplish this: select * from places order by account_status, name A very basic question, but I'm only a newbie Cheers :) Stay connected to the people that matter most with a smarter inbox. Take a look. -- catha...@gmail.com http://blog.cathayan.org --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Syntax for find()
Can someone provide the syntax for the find if I want to accomplish this: select * from places order by account_status, name A very basic question, but I'm only a newbie Cheers :) Stay connected to the people that matter most with a smarter inbox. Take a look http://au.docs.yahoo.com/mail/smarterinbox --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---