helpers/Button.php
public static function bar($groups, $htmlOptions = array())
    {
        ArrayHelper::addValue('class', 'button-bar', $htmlOptions);

        ob_start();
        echo \CHtml::openTag('div', $htmlOptions);
        foreach ($groups as $group) {
            echo $group;
        }
        echo \CHtml::closeTag('div');
        
        return ob_get_clean();
    }
public static function bar($groups, $htmlOptions = array())
    {
        ArrayHelper::addValue('class', 'button-bar', $htmlOptions);

        ob_start();
        echo \CHtml::openTag('div', $htmlOptions);
        foreach ($groups as $group) {
            echo $group;
        }
        echo \CHtml::closeTag('div');
        
        return ob_get_clean();
    }
public static function bar ( $ groups , $ htmlOptions = array ( ) ) { ArrayHelper :: addValue ( 'class' , 'button-bar' , $ htmlOptions ) ; ob_start ( ) ; echo \ CHtml :: openTag ( 'div' , $ htmlOptions ) ; foreach ( $ groups as $ group ) { echo $ group ; } echo \ CHtml :: closeTag ( 'div' ) ; return ob_get_clean ( ) ; }
Generates a button bar by wrapping multiple button groups into a button-bar
@param array $groups the button group to wrap
@param array $htmlOptions
@return string
Generates a button bar by wrapping multiple button groups into a button - bar