htmlOptions['class'])) { $this->htmlOptions['class'] .= ' form-horizontal'; } else { $this->htmlOptions['class'] = 'form-horizontal'; } parent::init(); } public function beginControlGroup($model, $attribute) { return '
' . $this->label($model, $attribute, array('class' => 'control-label')) . '
'; } public function endControlGroup() { return '
'; } public function controlGroup($model, $attribute, $controlsHtml) { return $this->beginControlGroup($model, $attribute) . $controlsHtml . $this->endControlGroup(); } public function textAreaControlGroup($model, $attribute, $htmlOptions = array()) { return $this->controlGroup($model, $attribute, $this->textArea($model, $attribute, $htmlOptions)); } public function checkBoxControlGroup($model, $attribute, $htmlOptions = array()) { return $this->controlGroup($model, $attribute, $this->checkBox($model, $attribute, $htmlOptions)); } public function passwordControlGroup($model, $attribute, $htmlOptions = array()) { return $this->controlGroup($model, $attribute, $this->passwordField($model, $attribute, $htmlOptions)); } public function textFieldControlGroup($model, $attribute, $htmlOptions = array()) { return $this->controlGroup($model, $attribute, $this->textField($model, $attribute, $htmlOptions)); } public function listBoxControlGroup($model, $attribute, $data, $htmlOptions = array()) { return $this->controlGroup($model, $attribute, $this->listBox($model, $attribute, $data, $htmlOptions)); } public function dropDownListControlGroup($model, $attribute, $data, $htmlOptions = array()) { return $this->controlGroup($model, $attribute, $this->dropDownList($model, $attribute, $data, $htmlOptions)); } public function checkBoxListControlGroup($model, $attribute, $data, $htmlOptions = array()) { $htmlOptions['separator'] = ''; $htmlOptions['template'] = '{input} {label}'; $html = '
' . $this->checkBoxList($model, $attribute, $data, $htmlOptions) . '
'; return $this->controlGroup($model, $attribute, $html); } public function fileFieldControlGroup($model, $attribute, $htmlOptions = array()) { return $this->controlGroup($model, $attribute, $this->fileField($model, $attribute, $htmlOptions)); } public function radioButtonListControlGroup($model, $attribute, $data, $htmlOptions = array()) { $htmlOptions['separator'] = ''; $htmlOptions['template'] = '{input} {label}'; $html = '
' . $this->radioButtonList($model, $attribute, $data, $htmlOptions) . '
'; return $this->controlGroup($model, $attribute, $html); } public function beginFieldset($legend) { return '
' . $legend . ''; } public function endFieldset() { return '
'; } }