public function select($name, array $values, $selected = null, $multiple = false, array $attributes = array()) { return Html::select($name, $values, $selected, $multiple, $attributes); }
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()); }
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); }