Skip to content
Permalink
Browse files

Added a message to avoid the use of postLink and postButton in forms.

  • Loading branch information...
jrbasso committed Oct 30, 2010
1 parent 373fa78 commit daa8d1fac2f76afe00a1dd18330d4d03005ae079
Showing with 4 additions and 0 deletions.
  1. +4 −0 cake/libs/view/helpers/form.php
@@ -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
@@ -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

0 comments on commit daa8d1f

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