【发布时间】:2014-12-19 11:29:31
【问题描述】:
我在表单中使用这个:
$this->widget('ext.select2.ESelect2',array(
'model'=>$model,
'attribute'=>'Employee',
'data'=>$model->Employee,
'options'=>array(
'width'=>'210','placeholder'=>'All Offices',
),
'htmlOptions' => array(
'multiple' => 'multiple'
),
));
$model->Employee 是一个数组,我希望这个数组在数据中被选中,当我移动更新数据时,比如下拉属性selected="selected"
【问题讨论】: