summaryrefslogtreecommitdiffstats
path: root/user_guide/libraries
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/libraries
parent85f66ea6d2291c77a937305457592e24c85425ae (diff)
changed your-site.com to example.com doc-wide
Diffstat (limited to 'user_guide/libraries')
-rw-r--r--user_guide/libraries/calendar.html10
-rw-r--r--user_guide/libraries/email.html10
-rw-r--r--user_guide/libraries/file_uploading.html2
-rw-r--r--user_guide/libraries/ftp.html8
-rw-r--r--user_guide/libraries/pagination.html6
-rw-r--r--user_guide/libraries/trackback.html4
-rw-r--r--user_guide/libraries/uri.html4
-rw-r--r--user_guide/libraries/validation.html2
-rw-r--r--user_guide/libraries/xmlrpc.html2
9 files changed, 24 insertions, 24 deletions
diff --git a/user_guide/libraries/calendar.html b/user_guide/libraries/calendar.html
index 81cdc7134..dd24d9d22 100644
--- a/user_guide/libraries/calendar.html
+++ b/user_guide/libraries/calendar.html
@@ -97,10 +97,10 @@ generating function. Consider this example:</p>
<code>$this->load->library('calendar');<br />
<br />
$data = array(<br />
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3&nbsp; => 'http://your-site.com/news/article/2006/03/',<br />
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;7&nbsp; => 'http://your-site.com/news/article/2006/07/',<br />
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;13 => 'http://your-site.com/news/article/2006/13/',<br />
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;26 => 'http://your-site.com/news/article/2006/26/'<br />
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3&nbsp; => 'http://example.com/news/article/2006/03/',<br />
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;7&nbsp; => 'http://example.com/news/article/2006/07/',<br />
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;13 => 'http://example.com/news/article/2006/13/',<br />
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;26 => 'http://example.com/news/article/2006/26/'<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;);<br />
<br />
echo $this->calendar->generate(<kbd>2006</kbd>, <kbd>6</kbd>, <var>$data</var>);</code>
@@ -168,7 +168,7 @@ code similar to this example:</p>
<code>$prefs = array (<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'show_next_prev'&nbsp;&nbsp;=> TRUE,<br />
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'next_prev_url'&nbsp;&nbsp; => 'http://www.your-site.com/index.php/calendar/show/'<br />
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'next_prev_url'&nbsp;&nbsp; => 'http://example.com/index.php/calendar/show/'<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;);<br />
<br />
$this-&gt;load-&gt;library('calendar', $prefs);<br />
diff --git a/user_guide/libraries/email.html b/user_guide/libraries/email.html
index e8325431a..88c63f046 100644
--- a/user_guide/libraries/email.html
+++ b/user_guide/libraries/email.html
@@ -83,7 +83,7 @@ Email Class
<code>$this->load->library('email');<br />
<br />
-$this->email->from('your@your-site.com', 'Your Name');<br />
+$this->email->from('your@example.com', 'Your Name');<br />
$this->email->to('someone@example.com'); <br />
$this->email->cc('another@another-example.com'); <br />
$this->email->bcc('them@their-example.com'); <br />
@@ -185,11 +185,11 @@ will NOT need to use the <dfn>$this->email->initialize()</dfn> function if you s
<h3>$this->email->from()</h3>
<p>Sets the email address and name of the person sending the email:</p>
-<code>$this->email->from('<var>you@your-site.com</var>', '<var>Your Name</var>');</code>
+<code>$this->email->from('<var>you@example.com</var>', '<var>Your Name</var>');</code>
<h3>$this->email->reply_to()</h3>
<p>Sets the reply-to address. If the information is not provided the information in the "from" function is used. Example:</p>
-<code>$this->email->reply_to('<var>you@your-site.com</var>', '<var>Your Name</var>');</code>
+<code>$this->email->reply_to('<var>you@example.com</var>', '<var>Your Name</var>');</code>
<h3>$this->email->to()</h3>
@@ -235,7 +235,7 @@ in a loop, permitting the data to be reset between cycles.</p>
&nbsp;&nbsp;&nbsp;&nbsp;$this->email->clear();<br /><br />
&nbsp;&nbsp;&nbsp;&nbsp;$this->email->to($address);<br />
-&nbsp;&nbsp;&nbsp;&nbsp;$this->email->from('your@your-site.com');<br />
+&nbsp;&nbsp;&nbsp;&nbsp;$this->email->from('your@example.com');<br />
&nbsp;&nbsp;&nbsp;&nbsp;$this->email->subject('Here is your info '.$name);<br />
&nbsp;&nbsp;&nbsp;&nbsp;$this->email->message('Hi '.$name.' Here is the info you requested.');<br />
&nbsp;&nbsp;&nbsp;&nbsp;$this->email->send();<br />
@@ -280,7 +280,7 @@ word wrapping within part of your message like this:</p>
<code>The text of your email that<br />
gets wrapped normally.<br />
<br />
-<var>{unwrap}</var>http://www.example.com/a_long_link_that_should_not_be_wrapped.html<var>{/unwrap}</var><br />
+<var>{unwrap}</var>http://example.com/a_long_link_that_should_not_be_wrapped.html<var>{/unwrap}</var><br />
<br />
More text that will be<br />
wrapped normally.</code>
diff --git a/user_guide/libraries/file_uploading.html b/user_guide/libraries/file_uploading.html
index 583173552..5ac2768d1 100644
--- a/user_guide/libraries/file_uploading.html
+++ b/user_guide/libraries/file_uploading.html
@@ -194,7 +194,7 @@ class Upload extends Controller {
<p>To try your form, visit your site using a URL similar to this one:</p>
-<code>www.your-site.com/index.php/<var>upload</var>/</code>
+<code>example.com/index.php/<var>upload</var>/</code>
<p>You should see an upload form. Try uploading an image file (either a jpg, gif, or png). If the path in your
controller is correct it should work.</p>
diff --git a/user_guide/libraries/ftp.html b/user_guide/libraries/ftp.html
index 1e2b7de40..450ca98bd 100644
--- a/user_guide/libraries/ftp.html
+++ b/user_guide/libraries/ftp.html
@@ -79,7 +79,7 @@ file permissions are set to 755. Note: Setting permissions requires PHP 5.</p>
<code>
$this->load->library('ftp');<br />
<br />
-$config['hostname'] = 'ftp.your-site.com';<br />
+$config['hostname'] = 'ftp.example.com';<br />
$config['username'] = 'your-username';<br />
$config['password'] = 'your-password';<br />
$config['debug'] = TRUE;<br />
@@ -98,7 +98,7 @@ $this->ftp->close();
<code>
$this->load->library('ftp');<br />
<br />
-$config['hostname'] = 'ftp.your-site.com';<br />
+$config['hostname'] = 'ftp.example.com';<br />
$config['username'] = 'your-username';<br />
$config['password'] = 'your-password';<br />
$config['debug'] = TRUE;<br />
@@ -118,7 +118,7 @@ $this->ftp->close();
<code>
$this->load->library('ftp');<br />
<br />
-$config['hostname'] = 'ftp.your-site.com';<br />
+$config['hostname'] = 'ftp.example.com';<br />
$config['username'] = 'your-username';<br />
$config['password'] = 'your-password';<br />
$config['debug'] = TRUE;<br />
@@ -144,7 +144,7 @@ to the function, or you can store them in a config file.</p>
<code>
$this->load->library('ftp');<br />
<br />
-$config['hostname'] = 'ftp.your-site.com';<br />
+$config['hostname'] = 'ftp.example.com';<br />
$config['username'] = 'your-username';<br />
$config['password'] = 'your-password';<br />
$config['port']&nbsp;&nbsp;&nbsp;&nbsp; = 21;<br />
diff --git a/user_guide/libraries/pagination.html b/user_guide/libraries/pagination.html
index 65529be43..a631aa462 100644
--- a/user_guide/libraries/pagination.html
+++ b/user_guide/libraries/pagination.html
@@ -70,7 +70,7 @@ Pagination Class
<code>
$this->load->library('pagination');<br /><br />
-$config['base_url'] = 'http://www.your-site.com/index.php/test/page/';<br />
+$config['base_url'] = 'http://example.com/index.php/test/page/';<br />
$config['total_rows'] = '200';<br />
$config['per_page'] = '20';
<br /><br />
@@ -121,9 +121,9 @@ something different you can specify it.</p>
will place two digits on either side, as in the example links at the very top of this page.</p>
<h4>$config['page_query_string'] = TRUE</h4>
<p>By default, the pagination library assume you are using <a href="../general/urls.html">URI Segments</a>, and constructs your links something like</p>
-<p><code>http://www.your-site.com/index.php/test/page/20</code></p>
+<p><code>http://example.com/index.php/test/page/20</code></p>
<p>If you have $config['enable_query_strings'] set to TRUE your links will automatically be re-written using Query Strings. This option can also be explictly set. Using $config['page_query_string'] set to TRUE, the pagination link will become.</p>
-<p><code>http://www.your-site.com/index.php?c=test&amp;m=page&amp;per_page=20</code></p>
+<p><code>http://example.com/index.php?c=test&amp;m=page&amp;per_page=20</code></p>
<p>Note that &quot;per_page&quot; is the default query string passed, however can be configured using $config['query_string_segment'] = 'your_string'</p>
<h2>Adding Enclosing Markup</h2>
diff --git a/user_guide/libraries/trackback.html b/user_guide/libraries/trackback.html
index b8284ea93..28ac19238 100644
--- a/user_guide/libraries/trackback.html
+++ b/user_guide/libraries/trackback.html
@@ -133,7 +133,7 @@ able to associate it with a particular entry.</p>
<p>For example, if your controller class is called <dfn>Trackback</dfn>, and the receiving function is called <dfn>receive</dfn>, your
Ping URLs will look something like this:</p>
-<code>http://www.your-site.com/index.php/trackback/receive/<samp>entry_id</samp></code>
+<code>http://example.com/index.php/trackback/receive/<samp>entry_id</samp></code>
<p>Where <samp>entry_id</samp> represents the individual ID number for each of your entries.</p>
@@ -198,7 +198,7 @@ $this->trackback->send_success();</code>
<p>The entry ID number is expected in the third segment of your URL. This is based on the URI example we gave earlier:</p>
-<code>http://www.your-site.com/index.php/trackback/receive/<samp>entry_id</samp></code>
+<code>http://example.com/index.php/trackback/receive/<samp>entry_id</samp></code>
<p>Notice the entry_id is in the third URI segment, which you can retrieve using:</p>
diff --git a/user_guide/libraries/uri.html b/user_guide/libraries/uri.html
index 75f575453..97275f0f6 100644
--- a/user_guide/libraries/uri.html
+++ b/user_guide/libraries/uri.html
@@ -68,7 +68,7 @@ also retrieve information about the re-routed segments.</p>
<p>Permits you to retrieve a specific segment. Where <var>n</var> is the segment number you wish to retrieve.
Segments are numbered from left to right. For example, if your full URL is this:</p>
-<code>http://www.your-site.com/index.php/news/local/metro/crime_is_up</code>
+<code>http://example.com/index.php/news/local/metro/crime_is_up</code>
<p>The segment numbers would be this:</p>
@@ -187,7 +187,7 @@ $str = $this->uri->assoc_to_uri($array);<br />
<p>Returns a string with the complete URI. For example, if this is your full URL:</p>
-<code>http://www.your-site.com/index.php/news/local/345</code>
+<code>http://example.com/index.php/news/local/345</code>
<p>The function would return this:</p>
diff --git a/user_guide/libraries/validation.html b/user_guide/libraries/validation.html
index b04f9f6b7..aee9e31c1 100644
--- a/user_guide/libraries/validation.html
+++ b/user_guide/libraries/validation.html
@@ -190,7 +190,7 @@ class Form extends Controller {
<p>To try your form, visit your site using a URL similar to this one:</p>
-<code>www.your-site.com/index.php/<var>form</var>/</code>
+<code>example.com/index.php/<var>form</var>/</code>
<p><strong>If you submit the form you should simply see the form reload. That's because you haven't set up any validation
rules yet, which we'll get to in a moment.</strong></p>
diff --git a/user_guide/libraries/xmlrpc.html b/user_guide/libraries/xmlrpc.html
index e3d519037..0d842d51c 100644
--- a/user_guide/libraries/xmlrpc.html
+++ b/user_guide/libraries/xmlrpc.html
@@ -391,7 +391,7 @@ class Xmlrpc_server extends Controller {
<h3>Try it!</h3>
<p>Now visit the your site using a URL similar to this:</p>
-<code>www.your-site.com/index.php/<var>xmlrpc_client</var>/</code>
+<code>example.com/index.php/<var>xmlrpc_client</var>/</code>
<p>You should now see the message you sent to the server, and its response back to you.</p>