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

public method

Generates an HTML button <button></button>.

Parameters

  • string $title

    The title of the button.

  • array $options

    Any options passed are converted to HTML attributes within the <button></button> tag.

Returns

string

Returns a <button></button> tag with the given title and HTML attributes.

Source

	public function button($title = null, array $options = []) {
		$defaults = ['escape' => true];
		list($scope, $options) = $this->_options($defaults, $options);
		list($title, $options, $template) = $this->_defaults(__METHOD__, $title, $options);

		$arguments = compact('title', 'options');
		return $this->_render(__METHOD__, 'button', $arguments, $scope);
	}