src/Helpers/Request/HtmlHelper.php
public function textInput($name, $value = null, $options = [], $encoding = null)
    {
        return $this->proxyWithCharset(__FUNCTION__, [$name, $value, $options, $encoding]);
    }
public function textInput($name, $value = null, $options = [], $encoding = null)
    {
        return $this->proxyWithCharset(__FUNCTION__, [$name, $value, $options, $encoding]);
    }
Generates a text input field.
@param string $name the name attribute.
@param string $value the value attribute. If it is null, the value attribute will not be generated.
@param array $options the tag options in terms of name-value pairs. These will be rendered as
the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
If a value is null, the corresponding attribute will not be rendered.
See [[renderTagAttributes()]] for details on how attributes are being rendered.
@param string $encoding
@return string the generated text input tag
@see Html::textInput()