I’m a new one to Yii components,
I’ve two activelistbox, the first one I bind it with data comes from the database as following:
$list = CHtml :: listData(FacilitiesTest::model()->findAll('FACILITYTYPE_ID = 2'), 'FACILITY_ID', 'FACILITY_CODE'); echo CHtml :: activeListbox($model, 'FACILITY_CODE', $list, array('multiple' => 'multiple', 'size' => 3));
I need to select item(s) in the first one and move it to the second activelist box or move all.
the problem is:
how to add items to the second activelistbox