when i first started cakephp i used the findby methods because they seemed intuitive. find 'all' seems to be much more flexible and i use that instead on most queries.
On Mar 27, 4:00 pm, cpeele <chris.peel...@gmail.com> wrote: > Hey guys, > > I am trying to just get a list of Products ordered by created desc but > I can't seem to get it. > > Products have a "name" field so I am using findAllByName($name). I > have tried various things but can't seem to get it. > > Any help would be greatly appreciated. Thanks! > ------------------------------------ > function view($name) > { > $projects = $this->Project->findAllByName($name); > $this->set('projects', $projects); > $this->set('projectName', $name); > } > --------------------------------- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---