On Jul 11, 8:02 pm, Preloader <[EMAIL PROTECTED]> wrote:
> Hello AD,
>
> yes, that's indeed described very well in the manual (Model-section),
> BUT:
>
> what if I wanted a group checkboxes instead of the multiselect?
>
> The resulting array should/could be something like
>
> array(
> [Movie] => array(
> [Movie] => array(
> [0] => 2,
> [1] => 4,
> [2] => 5,
> )
> )
> )
>
> Checkbox creation is clear: loop through the movies (values come from
> generateList) and fill the options-array of the FormHelper::input
> method.
>
> But what should I pass to the $fieldName param $form->input in order
> to get
>
> ... name="data[Movie][Movie][<idx_of_array>]" ...
>
> in HTML.
Hi Christoph,
I'm not sure you should/need to. There is an article on the bakery
about multiple checkboxes, although it's 1.1 maybe it still has some
useful info.
hth,
AD
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---