示例#1
0
 public function select($name, array $values, $selected = null, $multiple = false, array $attributes = array())
 {
     return Html::select($name, $values, $selected, $multiple, $attributes);
 }
示例#2
0
 public function testSelectThrowsExceptionForArrayWithoutMultiple()
 {
     $msg = 'Html::select() must be passed the "multiple" argument to use multiple selections';
     $this->setExpectedException('\\InvalidArgumentException', $msg);
     Html::select('choice', array('foo'), array());
 }
示例#3
0
 public function select($name, array $values, $selected = null, $multiple = false, array $attributes = array())
 {
     $attributes = Html::addToAttributeArray($attributes, 'class', 'form-control');
     return Html::select($name, $values, $selected, $multiple, $attributes);
 }