The Multiple Feature Not Working In Select2 Ext.

I’ve added the select2 search in advenced search from, it works yet not with ‘multiple’ htmlOptions.




    // 'type'=>'striped bordered condensed',

    'itemsCssClass' => 'table-bordered items',


    'filter' => $model,


	'htmlOptions'=>array('enctype' => 'multipart/form-data'),


                array('name'=>'sku', 'header'=>'Артикул'),



						'value' => '$data->Groupname',

						//'filter' => $groupFilter 




						//'value' => '$data->Groupname',

						//'filter' => $subgroupFilter


                array('name'=>'title', 'header'=>'Наименование'),

                array('name'=>'measure_unit', 'header'=>'Ед. Измерения'),







_search.php invoked thru ‘Advanced Search’ btn. where select2 is located:

<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(




echo '<table border="0" width="100%"><tr><td width="30%">';

			$GroupArray = CHtml::listData(AssortmentGroups::model()->findAll(), 'id', 'name');

				echo 'Auto make</br>';

				// Working with model SELECT2 


				 'name' => 'Assortment[agroup]',



				  /* 'htmlOptions'=>array( 


					   ),  */




		<td valign="top" style='padding:0 0 0 15px'>

			<?php echo '  Subgroup</br>';

			$SubgroupArray = CHtml::listData(AssortmentSubgroups::model()->findAll(), 'name', 'name');


				 'name' => 'Assortment[subgroup]',









		<td width="30%"></td>



<?php echo CHtml::submitButton('Выбрать', array('class' => 'btn btn-mini btn-info')); ?>

<?php $this->endWidget(); ?>

</div><!-- search-form -->

When i add

 'htmlOptions'=>array('multiple'=>'multiple', ),

as i’ve done in the second search field and press the ‘Search’ btn. the ‘500 error’ window pops up. See the attached file.

What’s wrong?


try to use multple equal to true