Monday, April 5, 2010

Re: Yet another HABTM multiple checkbox query, cakePHP 1.3 RC3

Never mind, I found out the problem. It was in the view.

echo $this->Form-
>input('KsfDimensionsPortfolioEntry.ksf_dimension_id',array('type'=>'select
','multiple'=>'checkbox','label'=>'KSF dimensions','selected'=>
$selectedDimensions));

Should read:

echo $this->Form-
>input('KsfDimension',array('type'=>'select','multiple'=>'checkbox','label'=>'KSF
dimensions','selected'=>$selectedDimensions));

I've just re-read this:

http://book.cakephp.org/view/75/Saving-Your-Data

Hopefully, it'll save someone from performing similar muppetry!

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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

To unsubscribe, reply using "remove me" as the subject.

No comments: