summaryrefslogtreecommitdiffstats
path: root/user_guide
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-12-09 20:41:25 +0100
committerDerek Jones <derek.jones@ellislab.com>2008-12-09 20:41:25 +0100
commit40a2fc8ab781130761237a29455718d24cb23821 (patch)
tree2e0a483cad3123f0a9d19ed31d211afc3290773b /user_guide
parent541ddbd6f3c0231f0e7fc0a18d9d54670a808958 (diff)
added $lowercase parameter to url_title() to allow forced lowercase
Diffstat (limited to 'user_guide')
-rw-r--r--user_guide/changelog.html1
-rw-r--r--user_guide/helpers/url_helper.html10
2 files changed, 10 insertions, 1 deletions
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index 9c09fabf2..fe7b36d76 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -79,6 +79,7 @@ SVN Revision: </p>
</li> <li>Helpers
<ul>
<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>
</li>
</ul>
diff --git a/user_guide/helpers/url_helper.html b/user_guide/helpers/url_helper.html
index 53fde2c3a..8bdf59a32 100644
--- a/user_guide/helpers/url_helper.html
+++ b/user_guide/helpers/url_helper.html
@@ -223,9 +223,17 @@ $url_title = url_title($title);<br />
<br />
$url_title = url_title($title, 'underscore');<br />
<br />
-// Produces: whats_wrong_with_css
+// Produces: Whats_wrong_with_CSS
</code>
+<p>The third parameter determines whether or not lowercase characters are forced. By default they are not. Options are boolean <dfn>TRUE</dfn>/<dfn>FALSE</dfn>:</p>
+
+<code>$title = "What's wrong with CSS?";<br />
+<br />
+$url_title = url_title($title, 'underscore', TRUE);<br />
+<br />
+// Produces: whats_wrong_with_css
+</code>
<h3>prep_url()</h3>
<p>This function will add <kbd>http://</kbd> in the event it is missing from a URL. Pass the URL string to the function like this:</p>