Bootstrapper\Form::password PHP Method

password() public method

public password ( string $name, array $attributes = [] ) : string
$name string The name of the password input
$attributes array The attributes of the input
return string
    public function password($name, $attributes = array())
    {
        $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL;
        return parent::password($name, $attributes);
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Create a password input field.
  *
  * @param string $name The name of the password input
  * @param array $attributes The attributes of the input
  * @return string 
  * @param string $name
  * @param array $options
  * @return string 
  * @static 
  */
 public static function password($name, $attributes = array())
 {
     return \Bootstrapper\Form::password($name, $attributes);
 }