Skip to content

Commit

Permalink
adjusts the docblock analogical to the new options
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFRedFox committed May 31, 2016
1 parent 7ab006d commit 061d24a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/View/Helper/FormHelper.php
Expand Up @@ -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
Expand Down

0 comments on commit 061d24a

Please sign in to comment.