dateField() public static method

Generates a date field input.
See also: self::textInputField
public static dateField ( 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.
Exemplo n.º 1
0
 public function testDateField()
 {
     $I = $this->codeGuy;
     $html = TbHtml::dateField('date', '2013-08-28', array('class' => 'input'));
     $input = $I->createNode($html, 'input[type=date]');
     $I->seeNodeAttributes($input, array('class' => 'input', 'id' => 'date', 'name' => 'date', 'value' => '2013-08-28'));
 }