From 78a5fc973844c64fe9ead260948b85efaf680da9 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Thu, 5 Feb 2009 16:34:35 +0000 Subject: Added the ability to have optgroups in form_dropdown() within the form helper. --- user_guide/helpers/form_helper.html | 1 + 1 file changed, 1 insertion(+) (limited to 'user_guide/helpers/form_helper.html') diff --git a/user_guide/helpers/form_helper.html b/user_guide/helpers/form_helper.html index 2bb2a4a3a..8504ac02f 100644 --- a/user_guide/helpers/form_helper.html +++ b/user_guide/helpers/form_helper.html @@ -239,6 +239,7 @@ fourth parameter:


echo form_dropdown('shirts', $options, 'large', $js); +

If the array passed as $options is a multidimensional array, form_dropdown() will produce an <optgroup> with the array key as the label.

form_fieldset()

-- cgit v1.2.3-24-g4f1b