diff options
Diffstat (limited to 'user_guide/helpers')
-rw-r--r-- | user_guide/helpers/form_helper.html | 10 | ||||
-rw-r--r-- | user_guide/helpers/smiley_helper.html | 6 | ||||
-rw-r--r-- | user_guide/helpers/string_helper.html | 4 | ||||
-rw-r--r-- | user_guide/helpers/url_helper.html | 10 |
4 files changed, 15 insertions, 15 deletions
diff --git a/user_guide/helpers/form_helper.html b/user_guide/helpers/form_helper.html index 5e556dca2..3f1e87a27 100644 --- a/user_guide/helpers/form_helper.html +++ b/user_guide/helpers/form_helper.html @@ -84,7 +84,7 @@ in the event your URLs ever change.</p> <p>The above example would create a form that points to your base URL plus the "email/send" URI segments, like this:</p>
-<code><form method="post" action="http:/www.your-site.com/index.php/email/send" /></code>
+<code><form method="post" action="http:/example.com/index.php/email/send" /></code>
<h4>Adding Attributes</h4>
@@ -97,7 +97,7 @@ echo form_open('email/send', $attributes);</code> <p>The above example would create a form similar to this:</p>
-<code><form method="post" action="http:/www.your-site.com/index.php/email/send" class="email" id="myform" /></code>
+<code><form method="post" action="http:/example.com/index.php/email/send" class="email" id="myform" /></code>
<h4>Adding Hidden Input Fields</h4>
@@ -110,7 +110,7 @@ echo form_open('email/send', '', $hidden);</code> <p>The above example would create a form similar to this:</p>
-<code><form method="post" action="http:/www.your-site.com/index.php/email/send"><br />
+<code><form method="post" action="http:/example.com/index.php/email/send"><br />
<input type="hidden" name="username" value="Joe" /><br />
<input type="hidden" name="member_id" value="234" /></code>
@@ -134,7 +134,7 @@ which is necessary if you would like to use the form to upload files with.</p> <code>$data = array(<br />
'name' => 'John Doe',<br />
'email' => 'john@example.com',<br />
- 'url' => 'http://www.example.com'<br />
+ 'url' => 'http://example.com'<br />
);<br />
<br />
echo form_hidden($data);<br />
@@ -142,7 +142,7 @@ echo form_hidden($data);<br /> // Would produce:<br /><br />
<input type="hidden" name="name" value="John Doe" /><br />
<input type="hidden" name="email" value="john@example.com" /><br />
-<input type="hidden" name="url" value="http://www.example.com" /></code>
+<input type="hidden" name="url" value="http://example.com" /></code>
diff --git a/user_guide/helpers/smiley_helper.html b/user_guide/helpers/smiley_helper.html index 7b59ec20b..a82ebd2b9 100644 --- a/user_guide/helpers/smiley_helper.html +++ b/user_guide/helpers/smiley_helper.html @@ -111,7 +111,7 @@ class Smileys extends Controller { $this->load->helper('smiley');
$this->load->library('table');
- $image_array = get_clickable_smileys('http://www.your-site.com/images/smileys/');
+ $image_array = get_clickable_smileys('http://example.com/images/smileys/');
$col_array = $this->table->make_columns($image_array, 8);
@@ -160,7 +160,7 @@ class Smileys extends Controller { <p>Returns an array containing your smiley images wrapped in a clickable link. You must supply the URL to your smiley folder
via the first parameter:</p>
-<code>$image_array = get_clickable_smileys("http://www.your-site.com/images/smileys/");</code>
+<code>$image_array = get_clickable_smileys("http://example.com/images/smileys/");</code>
<h2>js_insert_smiley()</h2>
@@ -181,7 +181,7 @@ equivalent. The first parameter must contain your string, the second must conta $str = 'Here are some simileys: :-) ;-)';
-$str = parse_smileys($str, "http://www.your-site.com/images/smileys/");
+$str = parse_smileys($str, "http://example.com/images/smileys/");
echo $str;
</code>
diff --git a/user_guide/helpers/string_helper.html b/user_guide/helpers/string_helper.html index daa573564..3ede00931 100644 --- a/user_guide/helpers/string_helper.html +++ b/user_guide/helpers/string_helper.html @@ -118,8 +118,8 @@ echo repeater($string, 30);</code> <p>The above would generate 30 newlines.</p>
<h2>reduce_double_slashes()</h2>
<p>Converts double slashes in a string to a single slash, except those found in http://. Example: </p>
-<code>$string = "http://www.example.com//index.php";<br />
-echo reduce_double_slashes($string); // results in "http://www.example.com/index.php"</code>
+<code>$string = "http://example.com//index.php";<br />
+echo reduce_double_slashes($string); // results in "http://example.com/index.php"</code>
<h2>trim_slashes()</h2>
<p>Removes any leading/trailing slashes from a string. Example:<br />
<br />
diff --git a/user_guide/helpers/url_helper.html b/user_guide/helpers/url_helper.html index 2c0b255d8..aaf4ae480 100644 --- a/user_guide/helpers/url_helper.html +++ b/user_guide/helpers/url_helper.html @@ -79,7 +79,7 @@ in the event your URL changes.</p> <code>echo site_url("news/local/123");</code>
-<p>The above example would return something like: http://www.your-site.com/index.php/news/local/123</p>
+<p>The above example would return something like: http://example.com/index.php/news/local/123</p>
<p>Here is an example of segments passed as an array:</p>
@@ -104,7 +104,7 @@ echo site_url($segments);</code> <p>Creates a standard HTML anchor link based on your local site URL:</p>
-<code><a href="http://www.your-site.com">Click Here</a></code>
+<code><a href="http://example.com">Click Here</a></code>
<p>The tag has three optional parameters:</p>
@@ -124,11 +124,11 @@ will be added automatically from the information specified in your config file. <code>echo anchor('news/local/123', 'My News');</code>
-<p>Would produce: <a href="http://www.your-site.com/index.php/news/local/123" title="My News">My News</a></p>
+<p>Would produce: <a href="http://example.com/index.php/news/local/123" title="My News">My News</a></p>
<code>echo anchor('news/local/123', 'My News', array('title' => 'The best news!'));</code>
-<p>Would produce: <a href="http://www.your-site.com/index.php/news/local/123" title="The best news!">My News</a></p>
+<p>Would produce: <a href="http://example.com/index.php/news/local/123" title="The best news!">My News</a></p>
<h2>anchor_popup()</h2>
@@ -218,7 +218,7 @@ $url_title = url_title($title, 'underscore');<br /> <h3>prep_url()</h3>
<p>This function will add <kbd>http://</kbd> in the event it is missing from a URL. Pass the URL string to the function like this:</p>
<code>
-$url = "www.example.com";<br /><br />
+$url = "example.com";<br /><br />
$url = prep_url($url);</code>
|