helpers/TbHtml.php
public static function formActions($actions, $htmlOptions = array())
    {
        self::addCssClass('form-actions', $htmlOptions);
        if (is_array($actions)) {
            $actions = implode(' ', $actions);
        }
        // todo: remove this
        $labelWidthClass = TbArray::popValue('labelWidthClass', $htmlOptions, self::$defaultFormLabelWidthClass);
        $controlWidthClass = TbArray::popValue('controlWidthClass', $htmlOptions, self::$defaultFormControlWidthClass);

        // todo: remove everything that has to do with form layout
        if (TbArray::popValue('formLayout', $htmlOptions, self::FORM_LAYOUT_VERTICAL) == self::FORM_LAYOUT_HORIZONTAL) {
            self::addCssClass(self::switchColToOffset($labelWidthClass), $htmlOptions);
            self::addCssClass(self::switchOffsetToCol($controlWidthClass), $htmlOptions);

            return self::tag('div', array('class' => 'form-group'), self::tag('div', $htmlOptions, $actions));
        } else {
            return self::tag('div', $htmlOptions, $actions);
        }
    }
public static function formActions($actions, $htmlOptions = array())
    {
        self::addCssClass('form-actions', $htmlOptions);
        if (is_array($actions)) {
            $actions = implode(' ', $actions);
        }
        // todo: remove this
        $labelWidthClass = TbArray::popValue('labelWidthClass', $htmlOptions, self::$defaultFormLabelWidthClass);
        $controlWidthClass = TbArray::popValue('controlWidthClass', $htmlOptions, self::$defaultFormControlWidthClass);

        // todo: remove everything that has to do with form layout
        if (TbArray::popValue('formLayout', $htmlOptions, self::FORM_LAYOUT_VERTICAL) == self::FORM_LAYOUT_HORIZONTAL) {
            self::addCssClass(self::switchColToOffset($labelWidthClass), $htmlOptions);
            self::addCssClass(self::switchOffsetToCol($controlWidthClass), $htmlOptions);

            return self::tag('div', array('class' => 'form-group'), self::tag('div', $htmlOptions, $actions));
        } else {
            return self::tag('div', $htmlOptions, $actions);
        }
    }
public static function formActions ( $ actions , $ htmlOptions = array ( ) ) { self :: addCssClass ( 'form-actions' , $ htmlOptions ) ; if ( is_array ( $ actions ) ) { $ actions = implode ( ' ' , $ actions ) ; } // todo: remove this
 $ labelWidthClass = TbArray :: popValue ( 'labelWidthClass' , $ htmlOptions , self :: $ defaultFormLabelWidthClass ) ; $ controlWidthClass = TbArray :: popValue ( 'controlWidthClass' , $ htmlOptions , self :: $ defaultFormControlWidthClass ) ; // todo: remove everything that has to do with form layout
 if ( TbArray :: popValue ( 'formLayout' , $ htmlOptions , self :: FORM_LAYOUT_VERTICAL ) == self :: FORM_LAYOUT_HORIZONTAL ) { self :: addCssClass ( self :: switchColToOffset ( $ labelWidthClass ) , $ htmlOptions ) ; self :: addCssClass ( self :: switchOffsetToCol ( $ controlWidthClass ) , $ htmlOptions ) ; return self :: tag ( 'div' , array ( 'class' => 'form-group' ) , self :: tag ( 'div' , $ htmlOptions , $ actions ) ) ; } else { return self :: tag ( 'div' , $ htmlOptions , $ actions ) ; } }
Generates form actions div. This is no longer necessary in Bootstrap 3, but it is still useful to use for
horizontal forms. When used with a horizontal form, it will appropriately align the actions below other form
controls.
@param mixed $actions the actions.
@param array $htmlOptions additional HTML attributes.
@return string the generated actions.
Generates form actions div . This is no longer necessary in Bootstrap 3 but it is still useful to use for horizontal forms . When used with a horizontal form it will appropriately align the actions below other form controls .