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

public method

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

Parameters

  • string $name

    The name of the field.

  • array $options

    An array of HTML attributes with which the field should be rendered.

Returns

string

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

Source

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