Generates an HTML `<input type="text" />` object.

Parameters

  • string $name The name of the field.
  • array $options All options passed are rendered as HTML attributes.

Returns

string Returns a `<input />` tag with the given name and HTML attributes.

Source

						public function text($name, array $options = array()) {
		list($name, $options, $template) = $this->_defaults(__FUNCTION__, $name, $options);
		return $this->_render(__METHOD__, $template, compact('name', 'options'));
	}