lithium\template\helper\Form::textarea()

public method

Generates an HTML <textarea>...</textarea> object.

Parameters

  • string $name

    The name of the field.

  • array $options

    The options to be used when generating the <textarea /> tag pair, which are as follows:

    • 'value' string: The content value of the field.
    • Any other options specified are rendered as HTML attributes of the element.

Returns

string

Returns a <textarea> tag with the given name and HTML attributes.

Source

	public function textarea($name, array $options = array()) {
		list($name, $options, $template) = $this->_defaults(__FUNCTION__, $name, $options);
		list($scope, $options) = $this->_options(array('value' => null), $options);
		$value = isset($scope['value']) ? $scope['value'] : '';
		return $this->_render(__METHOD__, $template, compact('name', 'options', 'value'));
	}