Skip to content

Commit

Permalink
Added a message to avoid the use of postLink and postButton in forms.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso committed Oct 30, 2010
1 parent 373fa78 commit daa8d1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cake/libs/view/helpers/form.php
Expand Up @@ -1266,6 +1266,8 @@ public function button($title, $options = array()) {
/**
* Create a `<button>` tag with `<form>` using POST method.
*
* This method creates an element <form>. So do not use this method in some opened form.
*
* ### Options:
*
* - `data` - Array with key/value to pass in input hidden
Expand All @@ -1292,6 +1294,8 @@ public function postButton($title, $url, $options = array()) {
/**
* Creates an HTML link, but access the url using method POST. Requires javascript enabled in browser.
*
* This method creates an element <form>. So do not use this method in some opened form.
*
* ### Options:
*
* - `data` - Array with key/value to pass in input hidden
Expand Down

0 comments on commit daa8d1f

Please sign in to comment.