Sunday, January 4, 2009

Re: saving to habtm models from checkbox groups.

On Sun, Jan 4, 2009 at 9:12 PM, mike <mwu153@gmail.com> wrote:
>
> awesome, thanks finally working.
>

Dang! I forgot to get back to you. Earlier, while I was away from my
computer, I suddenly realised that I may have given you bad info. I
said to do this:

<? echo $form->input('Ethnicity.Ethnicity', array( 'type' => 'select',
'multiple' => 'checkbox' ),$ethnicities); ?>

... which is the old way to do it. It won't save to the
ethnicities_users table. Try it like this:

<? echo $form->input('Ethnicity', array( 'type' => 'select',
'multiple' => 'checkbox' ),$ethnicities); ?>

I apologise for that. I shouldn't give out advice after a couple of
glasses of whisky.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: