Browse Source

Add info about "templates" option for FormHelper::input().

ADmad 10 years ago
parent
commit
2f4ddfc3e5
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/View/Helper/FormHelper.php

+ 3 - 0
src/View/Helper/FormHelper.php

@@ -978,6 +978,9 @@ class FormHelper extends Helper
      * - `nestedInput` - Used with checkbox and radio inputs. Set to false to render inputs outside of label
      *   elements. Can be set to true on any input to force the input inside the label. If you
      *   enable this option for radio buttons you will also need to modify the default `radioWrapper` template.
+     * - `templates` - The templates you want to use for this input. Any templates will be merged on top of
+     *   the already loaded templates. This option can either be a filename in /config that contains
+     *   the templates you want to load, or an array of templates to use.
      *
      * @param string $fieldName This should be "modelname.fieldname"
      * @param array $options Each type of input takes different options.