Skip to content
Permalink
Browse files

Add warning for irregular method.

Refs #7096
  • Loading branch information...
markstory committed Jul 24, 2015
1 parent 45877df commit b3a192add0e0c50c544b0670b43125efcbbaff05
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/Cake/View/Helper/FormHelper.php
@@ -814,6 +814,10 @@ public function error($field, $text = null, $options = array()) {
* <label for="post-publish">Publish</label>
* ```
*
* *Warning* Unlike most FormHelper methods, this method does not automatically
* escape the $text parameter. You must escape the $text parameter yourself if you
* are using user supplied data.
*
* @param string $fieldName This should be "Modelname.fieldname"
* @param string $text Text that will appear in the label field. If
* $text is left undefined the text will be inflected from the

0 comments on commit b3a192a

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