Bootstrapper\Form::warning PHP Method

warning() public method

Creates a warning validation block
See also: Bootstrapper\\Form::validation()
public warning ( string $label, string $input, array $attributes = [] ) : string
$label string The label
$input string The input
$attributes array The attributes of the validation block
return string
    public function warning($label, $input, $attributes = [])
    {
        return $this->validation(Form::FORM_WARNING, $label, $input, $attributes);
    }

Usage Example

Esempio n. 1
0
 /**
  * Creates a warning validation block
  *
  * @param string $label The label
  * @param string $input The input
  * @param array $attributes The attributes of the validation block
  * @return string 
  * @see Bootstrapper\\Form::validation()
  * @static 
  */
 public static function warning($label, $input, $attributes = array())
 {
     return \Bootstrapper\Form::warning($label, $input, $attributes);
 }