TbHtml::urlFieldControlGroup PHP Method

urlFieldControlGroup() public static method

Generates a control group with an url field.
See also: self::controlGroup
public static urlFieldControlGroup ( 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 control group.
    public static function urlFieldControlGroup($name, $value = '', $htmlOptions = array())
    {
        return self::controlGroup(self::INPUT_TYPE_URL, $name, $value, $htmlOptions);
    }

Usage Example

Exemplo n.º 1
0
 public function testUrlFieldControlGroup()
 {
     $I = $this->codeGuy;
     $html = TbHtml::urlFieldControlGroup('url', 'url');
     $group = $I->createNode($html, 'div.control-group');
     $label = $group->filter('label.control-label');
     $I->seeNodeChildren($label, array('input[type=url]'));
 }
TbHtml