I am having problem figuring out if this is possible in yii.
In my form i combined two models (parent and child) to create and update.
A parent class can have at least 1 child to maximum of 6 children. I created a number of fields in every instance of the child. I am thinking of creating an array of text fields in every attribute of the child, is that possible?
<?php echo $form->textField($childModel,'item_description[0]',array('size'=>68,'maxlength'=>100)); ?>
<?php echo $form->textField($childModel,'item_description[1]',array('size'=>68,'maxlength'=>100)); ?>
<?php echo $form->textField($childModel,'item_description[2]',array('size'=>68,'maxlength'=>100)); ?>
.
.
.
In my controller, will for each loop work in traversing those arrays?
Thanks.