Skip to content

Commit

Permalink
Add warning for irregular method.
Browse files Browse the repository at this point in the history
Refs #7096
  • Loading branch information
markstory committed Jul 24, 2015
1 parent 45877df commit b3a192a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Cake/View/Helper/FormHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b3a192a

Please sign in to comment.