findBy<fieldName>(string $value, $fields=null, $order=null,
$recursive=null)
finAlldBy<fieldName>(string $value, $fields=null, $order=null,
$limit=null, $page=null, $recursive=null)

By some unknown reason manual keeps this as secret.

Also these magic methods can take more the one param with AND or OR
condition:

findAllByNameAndGroup($nameValue, $groupValue)
findByNameOrUsername($nameValue, $usernameValue)

On Mar 28, 3:00 am, 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to