/** * Renders a Foundation label * @param string $text the text to render within the label * @param array $htmlOptions the HTML attributes * @return string the generated label */ public static function label($text, $htmlOptions = array()) { ArrayHelper::addValue('class', 'label', $htmlOptions); return \CHtml::tag('span', $htmlOptions, $text); }