lithium\template\helper\Form::text()
Generates an HTML <input type="text" /> object.
Parameters
-
string
$nameThe name of the field.
-
array
$optionsAll options passed are rendered as HTML attributes.
Returns
stringReturns a <input /> tag with the given name and HTML attributes.
Source
public function text($name, array $options = []) {
list($name, $options, $template) = $this->_defaults(__FUNCTION__, $name, $options);
return $this->_render(__METHOD__, $template, compact('name', 'options'));
}