From 140786fca98c381cac63beb84c4c2e233ff1090b Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Tue, 1 Apr 2008 16:06:08 +0000 Subject: guide example fixes --- user_guide/helpers/cookie_helper.html | 2 +- user_guide/helpers/email_helper.html | 2 +- user_guide/helpers/string_helper.html | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/user_guide/helpers/cookie_helper.html b/user_guide/helpers/cookie_helper.html index 01d8e78ab..93959cac6 100644 --- a/user_guide/helpers/cookie_helper.html +++ b/user_guide/helpers/cookie_helper.html @@ -70,7 +70,7 @@ Cookie Helper

set_cookie()

-

Sets a cookie containing the values you specify. There are two ways to pass information this function so that a cookie can be set: +

Sets a cookie containing the values you specify. There are two ways to pass information to this function so that a cookie can be set: Array Method, and Discrete Parameters:

Array Method

diff --git a/user_guide/helpers/email_helper.html b/user_guide/helpers/email_helper.html index 74923a52e..7acee1d81 100644 --- a/user_guide/helpers/email_helper.html +++ b/user_guide/helpers/email_helper.html @@ -72,7 +72,7 @@ Download Helper

Checks if an email is a correctly formatted email. Note that is doesn't actually prove the email will recieve mail, simply that it is a validly formed address.

It returns TRUE/FALSE

- $this->load->helper(email);
+ $this->load->helper('email');

if (valid_email('email@somesite.com'))
{
diff --git a/user_guide/helpers/string_helper.html b/user_guide/helpers/string_helper.html index c8e80bb7a..489c6b3fb 100644 --- a/user_guide/helpers/string_helper.html +++ b/user_guide/helpers/string_helper.html @@ -136,12 +136,12 @@ $string=reduce_multiples($string,","); //results in "Fred, Bill, Joe, Jimmy"

The function accepts the following parameters: reduce_multiples(string: text to search in, string: character to reduce, boolean: whether to remove the character from the front and end of the string) -The first parameter contrains the string in which you want to reduce the multiplies. The second parameter contains the character you want to have reduced. -The third parameter is False by default. If it it's to true it will remove occurences of the character at the beginning and the end of the string. Example: +The first parameter contains the string in which you want to reduce the multiplies. The second parameter contains the character you want to have reduced. +The third parameter is FALSE by default; if set to TRUE it will remove occurences of the character at the beginning and the end of the string. Example: $string=",Fred, Bill,, Joe, Jimmy,";
-$string=reduce_multiples($string,",",true); //results in "Fred, Bill, Joe, Jimmy" +$string=reduce_multiples($string, ", ", TRUE); //results in "Fred, Bill, Joe, Jimmy"

-- cgit v1.2.3-24-g4f1b