Hello,
An example to use 2 models on 1 form:
http://www.yiiframework.com/wiki/19/how-to-use-a-single-form-to-collect-data-for-two-or-more-models/
but, what happens when we use 2 instances of the same model ? Yii translate
$form->textField($sub,‘sub’,array(‘size’=>45,‘maxlength’=>45));
as
<input name="sub[]" …
then, the second model have the same name, isn’t it ?
Thanks for all,
Carles