summaryrefslogtreecommitdiffstats
path: root/user_guide
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2009-02-05 17:34:35 +0100
committerDerek Allard <derek.allard@ellislab.com>2009-02-05 17:34:35 +0100
commit78a5fc973844c64fe9ead260948b85efaf680da9 (patch)
tree9bb53969d236d71010ac5d7d142aac085b53be0a /user_guide
parentabb0adb40486976f137b4d4f42dda5113926a54d (diff)
Added the ability to have optgroups in form_dropdown() within the form helper.
Diffstat (limited to 'user_guide')
-rw-r--r--user_guide/changelog.html1
-rw-r--r--user_guide/helpers/form_helper.html1
2 files changed, 2 insertions, 0 deletions
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index 7892dc31e..9a3b613f3 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -82,6 +82,7 @@ SVN Revision: </p>
</li>
<li>Helpers
<ul>
+ <li>Added the ability to have optgroups in <kbd>form_dropdown()</kbd> within the <a href="helpers/form_helper.html">form helper</a>.</li>
<li>Added a doctype() function to the <a href="helpers/html_helper.html">HTML helper</a>.</li>
<li>Added ability to force lowercase for url_title() in the <a href="helpers/url_helper.html">URL helper</a>.</li>
</ul>
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:</p>
<br />
echo form_dropdown('shirts', $options, 'large', $js);</code>
+<p>If the array passed as $options is a multidimensional array, form_dropdown() will produce an &lt;optgroup&gt; with the array key as the label.</p>
<h2>form_fieldset()</h2>