TbHtml::dateField PHP 메소드

dateField() 공개 정적인 메소드

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

Usage Example

예제 #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'));
 }
TbHtml