Hi everybody;
select2 and chosen are great ext for web applications. I want to use anyone in my project, but i can’t find anywhere an application which uses select2 or chosen with Yii forms. I want to use select 2 or chosen ext like this.
$data=array(
'1'=>'Satu',
'2'=>'Dua',
'3'=>'Tiga',
);
$this->widget('ext.select2.ESelect2',array(
'name'=>'ajebajeb',
'data'=>$data,
'htmlOptions'=>array(
'multiple'=>'multiple',
),
));
For above code, my questions :
1- How to get my data from model like above data variable.
2- When i post the form, how can i get all form variables which comes from select2 or chosen.
3- When i select a value from select2 or chosen, I want to view user_name and i want to view user_id when i post.
4- Have you ever seen select2 or chosen example or application usage with Yii forms.
5- Sorry my bad english. Thank you for everything