public function feedback($label, $input, $icon, $attributes = [])
{
$attributes['class'] = isset($attributes['class']) ? 'form-group has-feedback ' . $attributes['class'] : 'form-group has-feedback';
$attributes = new Attributes($attributes);
$icon = "<span class='glyphicon glyphicon-{$icon} form-control-feedback'></span>";
return "<div {$attributes}>{$label}{$input}{$icon}</div>";
}
/** * Creates a feedback block with an icon * * @param string $label The label * @param string $input The input * @param string $icon The icon * @param array $attributes The attributes of the block * @return string * @static */ public static function feedback($label, $input, $icon, $attributes = array()) { return \Bootstrapper\Form::feedback($label, $input, $icon, $attributes); }