I am using a multi form model. A $model array is passed to the view and for each model object I am trying to have a text field and it works fine this way. See the code below.
foreach ($model as $f=>$edu):
echo $form->textField($edu,"[$f]schoolname",array('size'=>30,'maxlength'=>128));
I am trying to have an autocomplete text field coded replacing the activeform text field. It is not working. Any ideas how to make this work.See the code below.
foreach ($model as $f=>$edu): $this->widget('zii.widgets.jui.CJuiAutoComplete', array( 'model'=>$edu, 'attribute'=>"[$f]schoolname", 'source'=>$this->createUrl('AutoComplete/acschoolname'), // additional javascript options for the autocomplete plugin 'options'=>array('showAnim'=>'fold',), 'htmlOptions'=>array('size'=>'30','maxlength'=>'128',) ));