From 40a2fc8ab781130761237a29455718d24cb23821 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Tue, 9 Dec 2008 19:41:25 +0000 Subject: added $lowercase parameter to url_title() to allow forced lowercase --- user_guide/changelog.html | 1 + user_guide/helpers/url_helper.html | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'user_guide') 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:

  • Helpers
  • 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);

    $url_title = url_title($title, 'underscore');

    -// Produces: whats_wrong_with_css +// Produces: Whats_wrong_with_CSS +

    The third parameter determines whether or not lowercase characters are forced. By default they are not. Options are boolean TRUE/FALSE:

    + +$title = "What's wrong with CSS?";
    +
    +$url_title = url_title($title, 'underscore', TRUE);
    +
    +// Produces: whats_wrong_with_css +

    prep_url()

    This function will add http:// in the event it is missing from a URL. Pass the URL string to the function like this:

    -- cgit v1.2.3-24-g4f1b