Skip to content

Commit

Permalink
Fix FormHelper::postLink() description.
Browse files Browse the repository at this point in the history
Update description with a short explanation that considers the
`block` option.
  • Loading branch information
ndm2 committed Jan 26, 2016
1 parent 1812bc9 commit 59adc46
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/View/Helper/FormHelper.php
Expand Up @@ -1608,8 +1608,12 @@ public function postButton($title, $url, array $options = [])
* Creates an HTML link, but access the URL using the method you specify
* (defaults to POST). Requires javascript to be enabled in browser.
*
* This method creates a `<form>` element. So do not use this method inside an
* existing form. Instead you should add a submit button using FormHelper::submit()
* This method creates a `<form>` element. If you want to use this method inside of an
* existing form, you must use the `block` option so that the new form is being set to
* a view block that can be rendered outside of the main form.
*
* If all you are looking for is a button to submit your form, then you should use
* `FormHelper::submit()` instead.
*
* ### Options:
*
Expand Down

0 comments on commit 59adc46

Please sign in to comment.