helpers/TbHtml.php
public static function controls($controls, $htmlOptions = array())
    {
        if (TbArray::popValue('row', $htmlOptions, false)) {
            self::addCssClass('row', $htmlOptions);
        }
        $before = TbArray::popValue('before', $htmlOptions, '');
        $after = TbArray::popValue('after', $htmlOptions, '');
        if (is_array($controls)) {
            $controls = implode('', $controls);
        }
        $content = $before . $controls . $after;
        return self::tag('div', $htmlOptions, $content);
    }
public static function controls($controls, $htmlOptions = array())
    {
        if (TbArray::popValue('row', $htmlOptions, false)) {
            self::addCssClass('row', $htmlOptions);
        }
        $before = TbArray::popValue('before', $htmlOptions, '');
        $after = TbArray::popValue('after', $htmlOptions, '');
        if (is_array($controls)) {
            $controls = implode('', $controls);
        }
        $content = $before . $controls . $after;
        return self::tag('div', $htmlOptions, $content);
    }
public static function controls ( $ controls , $ htmlOptions = array ( ) ) { if ( TbArray :: popValue ( 'row' , $ htmlOptions , false ) ) { self :: addCssClass ( 'row' , $ htmlOptions ) ; } $ before = TbArray :: popValue ( 'before' , $ htmlOptions , '' ) ; $ after = TbArray :: popValue ( 'after' , $ htmlOptions , '' ) ; if ( is_array ( $ controls ) ) { $ controls = implode ( '' , $ controls ) ; } $ content = $ before . $ controls . $ after ; return self :: tag ( 'div' , $ htmlOptions , $ content ) ; }
Generates form controls.
@param mixed $controls the controls.
@param array $htmlOptions additional HTML attributes.
@return string the generated controls.
Generates form controls .