Not sure if this is what you want, but for filtering purposes I like
to use find.

http://book.cakephp.org/view/449/find

    $groups = $this->Model->find('list', array(
                              'conditions'=>array('Model.field' =>
exempleValue),
                              'fields'=>array('Model.id',
'Model.name')));

This is an example of what i used to generate a permissions array.
Lots of specifications are available with 'find'.

Hope this can help you,

Cheers
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to