TbHtml::activeUrlField PHP Method

activeUrlField() public static method

Generates an url field input for a model attribute.
See also: self::activeTextInputField
public static activeUrlField ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
return string the generated input field.
    public static function activeUrlField($model, $attribute, $htmlOptions = array())
    {
        return self::activeTextInputField('url', $model, $attribute, $htmlOptions);
    }

Usage Example

 /**
  * Renders a url field for a model attribute.
  * @param CModel $model the data model
  * @param string $attribute the attribute
  * @param array $htmlOptions additional HTML attributes.
  * @return string the generated input field
  * @see TbHtml::activeUrlField
  */
 public function urlField($model, $attribute, $htmlOptions = array())
 {
     return TbHtml::activeUrlField($model, $attribute, $htmlOptions);
 }
All Usage Examples Of TbHtml::activeUrlField
TbHtml