On 9/20/07, Martin Schapendonk <[EMAIL PROTECTED]> wrote:
>
> 2007/9/20, Chris Hartjes <[EMAIL PROTECTED]>:
> > Well, the array I passed in was one I created using generateList() so
> > it had key => value pairs. That might've made the difference.
>
> 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...
--
Chris Hartjes
Senior Developer
Cake Development Corporation
My motto for 2007: "Just build it, damnit!"
@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---