TbHtml::urlField PHP 메소드

urlField() 공개 정적인 메소드

Generates an url field input.
또한 보기: self::textInputField
public static urlField ( 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 urlField($name, $value = '', $htmlOptions = array())
    {
        return self::textInputField('url', $name, $value, $htmlOptions);
    }

Usage Example

예제 #1
0
 public function testUrlField()
 {
     $I = $this->codeGuy;
     $html = TbHtml::urlField('url', 'http://www.getyiistrap.com', array('class' => 'input'));
     $input = $I->createNode($html, 'input[type=url]');
     $I->seeNodeAttributes($input, array('class' => 'input', 'id' => 'url', 'name' => 'url', 'value' => 'http://www.getyiistrap.com'));
 }
TbHtml