From 4e58d595aef496f682024ed245d6c0c7cfdc1352 Mon Sep 17 00:00:00 2001 From: ndm2 Date: Tue, 26 Jan 2016 10:59:03 +0100 Subject: [PATCH] Fix `FormHelper::postLink()` description. Update description with a short explanation that considers the `inline` and `block` options. --- lib/Cake/View/Helper/FormHelper.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/Cake/View/Helper/FormHelper.php b/lib/Cake/View/Helper/FormHelper.php index b09e8e1c0..f1cd1aca1 100644 --- a/lib/Cake/View/Helper/FormHelper.php +++ b/lib/Cake/View/Helper/FormHelper.php @@ -1793,8 +1793,12 @@ class FormHelper extends AppHelper { * 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 `
` 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 `` element. If you want to use this method inside of an + * existing form, you must use the `inline` or `block` options 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: *