public static tag ( string $tag, array $htmlOptions = [], mixed $content = false, boolean $closeTag = true ) : string | ||
$tag | string | the tag name. |
$htmlOptions | array | the element attributes. |
$content | mixed | the content to be enclosed between open and close element tags. |
$closeTag | boolean | whether to generate the close tag. |
return | string | the generated HTML element tag. |
public static function tag($tag, $htmlOptions = array(), $content = false, $closeTag = true)
{
self::addSpanClass($htmlOptions);
self::addColClass($htmlOptions);
self::addPullClass($htmlOptions);
self::addTextAlignClass($htmlOptions);
return parent::tag($tag, $htmlOptions, $content, $closeTag);
}
/** * Renders the buttons in this form. * @return string the rendering result. */ public function renderButtons() { $buttons = array(); foreach ($this->getButtons() as $button) { $buttons[] = $this->renderElement($button); } return !empty($buttons) ? TbHtml::tag('div', array('class' => 'form-actions'), implode("\n", $buttons)) : ''; }