2007/9/20, Chris Hartjes <[EMAIL PROTECTED]>:
> > Probably not, because I did also.
> >
> > Controller: $audiences = $this->Activity->Audience->generateList();
> > View: echo $form->input('ade_id', array('options'=>$audiences));
>
> $values is the output of generateList()
>
> echo $form->input('field', array('label' => __('label', true),
> 'values' => $values));
>
> and that works just fine. Used it all over the place.
>
> So, I wonder who is right here...
I give up. 'values' doesn't work for me, 'options' does.
pr($audiences) shows me a nice key=>value array.
Martin
--
Martin Schapendonk, [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---