summaryrefslogtreecommitdiffstats
path: root/user_guide/helpers
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-06-26 19:05:55 +0200
committerDerek Jones <derek.jones@ellislab.com>2008-06-26 19:05:55 +0200
commitff845f94cc8876bc6c23c2f55b695bc569038512 (patch)
tree758d7880dabce6b0c89eb79bc11a60699c52b2fb /user_guide/helpers
parent85f66ea6d2291c77a937305457592e24c85425ae (diff)
changed your-site.com to example.com doc-wide
Diffstat (limited to 'user_guide/helpers')
-rw-r--r--user_guide/helpers/form_helper.html10
-rw-r--r--user_guide/helpers/smiley_helper.html6
-rw-r--r--user_guide/helpers/string_helper.html4
-rw-r--r--user_guide/helpers/url_helper.html10
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>&lt;form method="post" action="http:/www.your-site.com/index.php/email/send" /></code>
+<code>&lt;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>&lt;form method="post" action="http:/www.your-site.com/index.php/email/send" &nbsp;class="email" &nbsp;id="myform" /></code>
+<code>&lt;form method="post" action="http:/example.com/index.php/email/send" &nbsp;class="email" &nbsp;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>&lt;form method="post" action="http:/www.your-site.com/index.php/email/send"><br />
+<code>&lt;form method="post" action="http:/example.com/index.php/email/send"><br />
&lt;input type="hidden" name="username" value="Joe" /><br />
&lt;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 />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'name'&nbsp;&nbsp;=> 'John Doe',<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'email' => 'john@example.com',<br />
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'url'&nbsp;&nbsp;&nbsp;=> 'http://www.example.com'<br />
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'url'&nbsp;&nbsp;&nbsp;=> 'http://example.com'<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;);<br />
<br />
echo form_hidden($data);<br />
@@ -142,7 +142,7 @@ echo form_hidden($data);<br />
// Would produce:<br /><br />
&lt;input type="hidden" name="name" value="John Doe" /><br />
&lt;input type="hidden" name="email" value="john@example.com" /><br />
-&lt;input type="hidden" name="url" value="http://www.example.com" /></code>
+&lt;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 = &quot;http://www.example.com//index.php&quot;;<br />
-echo reduce_double_slashes($string); // results in &quot;http://www.example.com/index.php&quot;</code>
+<code>$string = &quot;http://example.com//index.php&quot;;<br />
+echo reduce_double_slashes($string); // results in &quot;http://example.com/index.php&quot;</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>&lt;a href="http://www.your-site.com">Click Here&lt;/a></code>
+<code>&lt;a href="http://example.com">Click Here&lt;/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: &lt;a href="http://www.your-site.com/index.php/news/local/123" title="My News">My News&lt;/a></p>
+<p>Would produce: &lt;a href="http://example.com/index.php/news/local/123" title="My News">My News&lt;/a></p>
<code>echo anchor('news/local/123', 'My News', array('title' => 'The best news!'));</code>
-<p>Would produce: &lt;a href="http://www.your-site.com/index.php/news/local/123" title="The best news!">My News&lt;/a></p>
+<p>Would produce: &lt;a href="http://example.com/index.php/news/local/123" title="The best news!">My News&lt;/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>