Skip to content
Permalink
Browse files

adjusts the docblock analogical to the new options

  • Loading branch information...
TheFRedFox committed May 31, 2016
1 parent 7ab006d commit 061d24a3ccf6dd92aef880dddaa3c4525eda86d8
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/View/Helper/FormHelper.php
@@ -1598,14 +1598,17 @@ public function button($title, array $options = [])
}
/**
* Create a `<button>` tag with a surrounding `<form>` that submits via POST.
* Create a `<button>` tag with a surrounding `<form>` that submits via POST in default.
*
* This method creates a `<form>` element. So do not use this method in an already opened form.
* Instead use FormHelper::submit() or FormHelper::button() to create buttons inside opened forms.
*
* ### Options:
*
* - `data` - Array with key/value to pass in input hidden
* - `method` - Request method to use. Set to 'delete' or others to simulate
* HTTP/1.1 DELETE (or others) request. Defaults to 'post'.
* - `form` - Array with any option that FormHelper::create() can take
* - Other options is the same of button method.
*
* @param string $title The button's caption. Not automatically HTML encoded

0 comments on commit 061d24a

Please sign in to comment.
You can’t perform that action at this time.