diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-03-04 16:25:41 +0100 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-03-04 16:25:41 +0100 |
commit | 476af3a89058861e7d44473ac01c2206ebbbe6f1 (patch) | |
tree | 76c49b82f03ed919099ec42dd54cba7f58dda363 /user_guide/helpers | |
parent | 4383e36dd8af32ce3a8d8584bad78f62e8465726 (diff) | |
parent | 6f6897cdce965e1cf54deb40ce93ba9be281108f (diff) |
Merge pull request #1116 from tubalmartin/helpers|url|2.1-stable
2.1 stable - An improved url_title helper function
Diffstat (limited to 'user_guide/helpers')
-rw-r--r-- | user_guide/helpers/url_helper.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/user_guide/helpers/url_helper.html b/user_guide/helpers/url_helper.html index 76ec32ab2..c23c5ac92 100644 --- a/user_guide/helpers/url_helper.html +++ b/user_guide/helpers/url_helper.html @@ -231,11 +231,11 @@ $url_title = url_title($title);<br /> </code> -<p>The second parameter determines the word delimiter. By default dashes are used. Options are: <dfn>dash</dfn>, or <dfn>underscore</dfn>:</p> +<p>The second parameter determines the word delimiter. By default dashes are used.</p> <code>$title = "What's wrong with CSS?";<br /> <br /> -$url_title = url_title($title, 'underscore');<br /> +$url_title = url_title($title, '_');<br /> <br /> // Produces: Whats_wrong_with_CSS </code> @@ -244,7 +244,7 @@ $url_title = url_title($title, 'underscore');<br /> <code>$title = "What's wrong with CSS?";<br /> <br /> -$url_title = url_title($title, 'underscore', TRUE);<br /> +$url_title = url_title($title, '_', TRUE);<br /> <br /> // Produces: whats_wrong_with_css </code> |