public static function formGroup($label = null, $type = 'text', $name = null){

        $aParams = func_get_args();

        $label = $aParams[0];
        $type = $aParams[1];
        $name = $aParams[2] or $label;

        unset($aParams[0], $aParams[1]);

        $html = '<div class="form-group" id="form-' . $name . '">';

        $html .= Form::label($name, $label);

        $html .= call_user_func_array(array('Form', $type), $aParams);

        $html .= '</div>';

        return $html;
    }