本文整理汇总了PHP中BsHtml::activeTextAreaControlGroup方法的典型用法代码示例。如果您正苦于以下问题:PHP BsHtml::activeTextAreaControlGroup方法的具体用法?PHP BsHtml::activeTextAreaControlGroup怎么用?PHP BsHtml::activeTextAreaControlGroup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BsHtml
的用法示例。
在下文中一共展示了BsHtml::activeTextAreaControlGroup方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: textAreaControlGroup
/**
* 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);
}
示例2: richTextAreaControlGroup
/**
* 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);
}