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 | |
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')
-rw-r--r-- | user_guide/changelog.html | 5 | ||||
-rw-r--r-- | user_guide/helpers/url_helper.html | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/user_guide/changelog.html b/user_guide/changelog.html index b87e61ba8..613c4e65d 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -71,6 +71,11 @@ Change Log <li>Further improved MIME type detection in the <a href="libraries/file_uploading.html">File Uploading Library</a>.</li> </ul> </li> + <li>Helpers + <ul> + <li><samp>url_title()</samp> performance and output improved. You can now use any string as the word delimiter. Backwards compatible with 'dash' or 'underscore' as words delimiters.</li> + </ul> + </li> </ul> <h3>Bug fixes for 2.1.1</h3> 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> |