Yii Framework Forum: Select2 & Chosen Ext - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Select2 & Chosen Ext Rate Topic: -----

#1 User is offline   drxy 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 30
  • Joined: 12-September 12

Posted 19 January 2013 - 11:33 AM

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 :)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users