summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source
diff options
context:
space:
mode:
authoraditya <adityamenon90@gmail.com>2012-07-06 03:17:51 +0200
committeraditya <adityamenon90@gmail.com>2012-07-06 03:17:51 +0200
commited5538d25e32569b96789307816109bcd517c050 (patch)
tree72870752cd6340dff70cea0356d0efb04fec09e4 /user_guide_src/source
parent9e3a83a65668cc26b685f0b35a4428809435f7c9 (diff)
t commit -s 'Added info about set_*() functions and form_validation class in
the Form Helper documentation.' Signed-off-by: aditya <adityamenon90@gmail.com>
Diffstat (limited to 'user_guide_src/source')
-rw-r--r--user_guide_src/source/helpers/form_helper.rst4
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