Hello,
I have this in my _form:
$this->widget('ext.select2.ESelect2',array(
'model'=>$model,
'attribute' => 'authors[]',
'data'=>CHtml::listData(
Authors::model()->findAll(), 'AuthorId', 'AuthorName'),
'options' => array(
'placeholder'=>'Select authors',
),
'htmlOptions'=>array(
'multiple'=>'multiple',
),
));
I use it on create method. How can I use it on update method with preload selected data?
Thank you!!