/** * Generates a control group with a text area for a model attribute. * @param CModel $model the data model. * @param string $attribute the attribute name. * @param array $htmlOptions additional HTML attributes. * @return string the generated row. * @see BsHtml::activeTextAreaControlGroup */ public function textAreaControlGroup($model, $attribute, $htmlOptions = array()) { $htmlOptions = $this->processRowOptions($model, $attribute, $htmlOptions); return BsHtml::activeTextAreaControlGroup($model, $attribute, $htmlOptions); }
/** * Generates a control group with a text field for a model attribute. * @param CModel $model the data model. * @param string $attribute the attribute name. * @param array $htmlOptions additional HTML attributes. * @return string the generated row. * @see BsHtml::activeTextFieldControlGroup */ public function richTextAreaControlGroup($model, $attribute, $htmlOptions = array()) { $formType = $this->_defaultTypes['text']; if (isset($formType['widget']['class'])) { $settings = $formType['widget']['settings']; $settings['name'] = $attribute; $settings['attribute'] = $attribute; $settings['model'] = $model; $widget = $this->widget($formType['widget']['class'], $settings, true); $htmlOptions['input'] = $widget; } $htmlOptions = $this->processRowOptions($model, $attribute, $htmlOptions); return BsHtml::activeTextAreaControlGroup($model, $attribute, $htmlOptions); }