emailField() 공개 정적인 메소드

Generates an email field input.
또한 보기: self::textInputField
public static emailField ( 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.
예제 #1
0
 public function testEmailField()
 {
     $I = $this->codeGuy;
     $html = TbHtml::emailField('email', '*****@*****.**', array('class' => 'input'));
     $input = $I->createNode($html, 'input[type=email]');
     $I->seeNodeAttributes($input, array('class' => 'input', 'id' => 'email', 'name' => 'email', 'value' => '*****@*****.**'));
 }