From 8788d4b5f597465daaabf46455cd086b6b7deb58 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Wed, 8 Aug 2007 17:04:40 +0000 Subject: changed some-site.com to example.com in example code per http://www.rfc-editor.org/rfc/rfc2606.txt --- user_guide/helpers/form_helper.html | 8 ++++---- user_guide/helpers/string_helper.html | 4 ++-- user_guide/helpers/url_helper.html | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'user_guide/helpers') diff --git a/user_guide/helpers/form_helper.html b/user_guide/helpers/form_helper.html index d9eeb21a6..2613358db 100644 --- a/user_guide/helpers/form_helper.html +++ b/user_guide/helpers/form_helper.html @@ -138,16 +138,16 @@ which is necessary if you would like to use the form to upload files with.

$data = array(
              'name'  => 'John Doe',
-              'email' => 'john@some-site.com',
-              'url'   => 'http://www.some-site.com'
+              'email' => 'john@example.com',
+              'url'   => 'http://www.example.com'
            );

echo form_hidden($data);

// Would produce:

<input type="hidden" name="name" value="John Doe" />
-<input type="hidden" name="email" value="john@some-site.com" />
-<input type="hidden" name="url" value="http://www.some-site.com" />
+<input type="hidden" name="email" value="john@example.com" />
+<input type="hidden" name="url" value="http://www.example.com" /> diff --git a/user_guide/helpers/string_helper.html b/user_guide/helpers/string_helper.html index cf6871709..c20c7b840 100644 --- a/user_guide/helpers/string_helper.html +++ b/user_guide/helpers/string_helper.html @@ -123,8 +123,8 @@ echo repeater($string, 30);

The above would generate 30 newlines.

reduce_double_slashes()

Converts double slashes in a string to a single slash, except those found in http://. Example:

-$string = "http://www.some-site.com//index.php";
-echo reduce_double_slashes($string); // results in "http://www.some-site.com/index.php"
+$string = "http://www.example.com//index.php";
+echo reduce_double_slashes($string); // results in "http://www.example.com/index.php"

trim_slashes()

Removes any leading/trailing slashes from a string. Example:

diff --git a/user_guide/helpers/url_helper.html b/user_guide/helpers/url_helper.html index 0f6075585..08e6f7d0c 100644 --- a/user_guide/helpers/url_helper.html +++ b/user_guide/helpers/url_helper.html @@ -224,7 +224,7 @@ $url_title = url_title($title, 'underscore');

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:

-$url = "www.some-site.com";

+$url = "www.example.com";

$url = prep_url($url);
-- cgit v1.2.3-24-g4f1b