diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-07-06 11:33:38 +0200 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-07-06 11:33:38 +0200 |
commit | d993974327dcb3b6df14488fa7d5a1a372f29bc9 (patch) | |
tree | f76e700ee198ba2cecadabf9d03468a10a3764b4 /user_guide_src/source/helpers/form_helper.rst | |
parent | 9a4f356846daa078c077cbadb227524c857b8f97 (diff) | |
parent | ed5538d25e32569b96789307816109bcd517c050 (diff) |
Merge pull request #1581 from adityamenon/develop
Added info about set_*() functions and form_validation class in the Form Helper documentation.
Diffstat (limited to 'user_guide_src/source/helpers/form_helper.rst')
-rw-r--r-- | user_guide_src/source/helpers/form_helper.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/user_guide_src/source/helpers/form_helper.rst b/user_guide_src/source/helpers/form_helper.rst index a110f3c14..fa7b3dbf9 100644 --- a/user_guide_src/source/helpers/form_helper.rst +++ b/user_guide_src/source/helpers/form_helper.rst @@ -543,3 +543,7 @@ This function is identical to the **set_checkbox()** function above. <input type="radio" name="myradio" value="1" <?php echo set_radio('myradio', '1', TRUE); ?> /> <input type="radio" name="myradio" value="2" <?php echo set_radio('myradio', '2'); ?> /> +.. note:: If you are using the Form Validation class, you must always specify a rule for your field, + even if empty, in order for the set_*() functions to work. This is because if a Form Validation object + is defined, the control for set_*() is handed over to a method of the class instead of the generic helper + function.
\ No newline at end of file |