Yii Framework Forum: Multiple Dropdown List - Yii Framework Forum

Jump to content

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

Multiple Dropdown List giix multi dropdown Rate Topic: -----

#1 User is offline   cwhite 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 09-November 11

Posted 28 January 2013 - 10:11 AM

I'm using giix. I need to make this drop-down to allow multiple selects. Can anyone assist?

<label><?php echo GxHtml::encode($model->getRelationLabel('recruitColleges')); ?></label>
<?php echo $form->dropDownList($model, 'recruitColleges', GxHtml::encodeEx(
GxHtml::listDataEx(
College::model()->findAllAttributes(null, true)), false, true));

?>
0

#2 User is offline   PeRoChAk 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 573
  • Joined: 26-November 10
  • Location:Lahore, Pakistan

Posted 28 January 2013 - 11:13 AM

Give the attributes of the Collage model, as
College::model()->findAllAttributes(null, true)), 'id', 'name'

Cheers
Perochak
Web Design - Logo Design - Application Development

My Blog | Forums Comparison
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