Issue
I have a model for which exists some model associations whose hasmay and HABTM.
In the edit view,
<?php echo $this->Form->input('myHABTMModel'); ?>
create a select>multiple input, but
<?php echo $this->Form->input('myHasManyModel'); ?>
create a select input with unique choice.
Why ? It is normal ? I must specify ? Or something is wrong somewhere ?
Solution
Indeed, it must specify the multiplicity in the input method options :
<?php echo $this->Form->input('myHasManyModel',array('multiple'=>'multiple')); ?>
Answered By - Rémi Becheras Answer Checked By - Clifford M. (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.