TbHtml::passwordField PHP Method

passwordField() public static method

Generates a password field input.
See also: self::textInputField
public static passwordField ( string $name, string $value = '', array $htmlOptions = [] ) : string
$name string the input name.
$value string the input value.
$htmlOptions array additional HTML attributes.
return string the generated input field.
    public static function passwordField($name, $value = '', $htmlOptions = array())
    {
        return self::textInputField('password', $name, $value, $htmlOptions);
    }

Usage Example

Exemplo n.º 1
0
 public function testPasswordField()
 {
     $I = $this->codeGuy;
     $html = TbHtml::passwordField('password', 'secret', array('class' => 'input'));
     $input = $I->createNode($html, 'input[type=password]');
     $I->seeNodeAttributes($input, array('class' => 'input', 'id' => 'password', 'name' => 'password', 'value' => 'secret'));
 }
All Usage Examples Of TbHtml::passwordField
TbHtml