I tried that very thing, but it didn't produce the expected results.
Maybe find('list', $options) isn't meant to accommodate more than a
single field. I'm not sure.

On Jan 15, 11:34 am, "David Coleman" <[email protected]>
wrote:
> You could also do something like this in your controller:
>
>             $aliquots = $this->Aliquot->find(
>
>                   'list',
>
>                   array(
>
>                         'fields'=>array(
>
>                               'Aliquot.id',
>
>                               'Aliquot.name'
>
>                               ),
>
>                         'conditions'=>array(
>
>                               // some conditions if necessary.
>
>                               )
>
>                         )
>
>                   );
>
> And then pass this to your view with
>
> $this->set(‘aliquotes’, $aliquots);

--~--~---------~--~----~------------~-------~--~----~
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