lithium\template\helper\Form::button()
Generates an HTML button <button></button>.
Parameters
-
string
$titleThe title of the button.
-
array
$optionsAny options passed are converted to HTML attributes within the
<button></button>tag.
Returns
stringReturns 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);
}