0
我無法在加載時將多選控件的左側列表設置爲空模式。當我將null
值設置爲左側列表時,它顯示錯誤。這是我的代碼:在Yii中自定義Xmultiselect
$this->widget('ext.widgets.multiselects.XMultiSelects', array(
'leftTitle' => '',
'leftName' => 'Certificate[selected][]',
'leftList' => SpecificCertification::model()->findCertificate(),// here I need to make the list empty
'rightTitle' => '',
'rightName' => 'Certificate[all][]',
'rightList' => SpecificCertification::model()->findCertificates(),
'size' => 10,
));
如何讓左列表爲空?