TbHtml::passwordField PHP 메소드

passwordField() 공개 정적인 메소드

Generates a password field input.
또한 보기: 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.
리턴 string the generated input field.
    public static function passwordField($name, $value = '', $htmlOptions = array())
    {
        return self::textInputField('password', $name, $value, $htmlOptions);
    }

Usage Example

예제 #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