summaryrefslogtreecommitdiffstats
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
parent85f66ea6d2291c77a937305457592e24c85425ae (diff)
changed your-site.com to example.com doc-wide
-rw-r--r--system/application/config/config.php8
-rw-r--r--system/application/config/routes.php2
-rw-r--r--system/libraries/URI.php2
-rw-r--r--system/plugins/captcha_pi.php6
-rw-r--r--user_guide/database/caching.html2
-rw-r--r--user_guide/database/helpers.html4
-rw-r--r--user_guide/general/controllers.html14
-rw-r--r--user_guide/general/routing.html10
-rw-r--r--user_guide/general/scaffolding.html4
-rw-r--r--user_guide/general/urls.html10
-rw-r--r--user_guide/general/views.html2
-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
-rw-r--r--user_guide/installation/upgrade_130.html10
-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
-rw-r--r--user_guide/overview/at_a_glance.html2
26 files changed, 77 insertions, 77 deletions
diff --git a/system/application/config/config.php b/system/application/config/config.php
index 814362326..f8fd9c809 100644
--- a/system/application/config/config.php
+++ b/system/application/config/config.php
@@ -8,7 +8,7 @@
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
-| http://www.your-site.com/
+| http://example.com/
|
*/
$config['base_url'] = "http://127.0.0.1/CodeIgniter/";
@@ -132,16 +132,16 @@ $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
|--------------------------------------------------------------------------
|
| By default CodeIgniter uses search-engine friendly segment based URLs:
-| www.your-site.com/who/what/where/
+| example.com/who/what/where/
|
| You can optionally enable standard query string based URLs:
-| www.your-site.com?who=me&what=something&where=here
+| example.com?who=me&what=something&where=here
|
| Options are: TRUE or FALSE (boolean)
|
| The other items let you set the query string "words" that will
| invoke your controllers and its functions:
-| www.your-site.com/index.php?c=controller&m=function
+| example.com/index.php?c=controller&m=function
|
| Please note that some of the helpers won't work as expected when
| this feature is enabled, since CodeIgniter is designed primarily to
diff --git a/system/application/config/routes.php b/system/application/config/routes.php
index a05361e28..c95924832 100644
--- a/system/application/config/routes.php
+++ b/system/application/config/routes.php
@@ -9,7 +9,7 @@
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
-| www.your-site.com/class/method/id/
+| example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
diff --git a/system/libraries/URI.php b/system/libraries/URI.php
index 8d979d0d2..c3dfef1d8 100644
--- a/system/libraries/URI.php
+++ b/system/libraries/URI.php
@@ -296,7 +296,7 @@ class CI_URI {
* This function generates and associative array of URI data starting
* at the supplied segment. For example, if this is your URI:
*
- * www.your-site.com/user/search/name/joe/location/UK/gender/male
+ * example.com/user/search/name/joe/location/UK/gender/male
*
* You can use this function to generate an array with this prototype:
*
diff --git a/system/plugins/captcha_pi.php b/system/plugins/captcha_pi.php
index baa0a8dc5..0c8d7d29c 100644
--- a/system/plugins/captcha_pi.php
+++ b/system/plugins/captcha_pi.php
@@ -27,7 +27,7 @@ Once loaded you can generate a captcha like this:
$vals = array(
'word' => 'Random word',
'img_path' => './captcha/',
- 'img_url' => 'http://www.your-site.com/captcha/',
+ 'img_url' => 'http://example.com/captcha/',
'font_path' => './system/fonts/texb.ttf',
'img_width' => '150',
'img_height' => 30,
@@ -69,7 +69,7 @@ The create_captcha() function returns an associative array with this data:
)
The "image" is the actual image tag:
-<img src="http://your-site.com/captcha/12345.jpg" width="140" height="50" />
+<img src="http://example.com/captcha/12345.jpg" width="140" height="50" />
The "time" is the micro timestamp used as the image name without the file
extension. It will be a number like this: 1139612155.3422
@@ -104,7 +104,7 @@ On the page where the captcha will be shown you'll have something like this:
$this->load->plugin('captcha');
$vals = array(
'img_path' => './captcha/',
- 'img_url' => 'http://www.your-site.com/captcha/'
+ 'img_url' => 'http://example.com/captcha/'
);
$cap = create_captcha($vals);
diff --git a/user_guide/database/caching.html b/user_guide/database/caching.html
index 6d157abe1..c1ada2de9 100644
--- a/user_guide/database/caching.html
+++ b/user_guide/database/caching.html
@@ -178,7 +178,7 @@ $query = $this->db->query("SELECT * FROM another_table");
<p>Deletes the cache files associated with a particular page. This is useful if you need to clear caching after you update your database.</p>
<p>The caching system saves your cache files to folders that correspond to the URI of the page you are viewing. For example, if you are viewing
-a page at <dfn>www.your-site.com/index.php/blog/comments</dfn>, the caching system will put all cache files associated with it in a folder
+a page at <dfn>example.com/index.php/blog/comments</dfn>, the caching system will put all cache files associated with it in a folder
called <dfn>blog+comments</dfn>. To delete those particular cache files you will use:</p>
<code>$this->db->cache_delete('blog', 'comments');</code>
diff --git a/user_guide/database/helpers.html b/user_guide/database/helpers.html
index 10598f8a8..73c541269 100644
--- a/user_guide/database/helpers.html
+++ b/user_guide/database/helpers.html
@@ -110,7 +110,7 @@ $str = $this->db->insert_string('table_name', $data);
</code>
<p>The first parameter is the table name, the second is an associative array with the data to be inserted. The above example produces:</p>
-<code>INSERT INTO table_name (name, email, url) VALUES ('Rick', 'rick@your-site.com', 'www.your-site.com')</code>
+<code>INSERT INTO table_name (name, email, url) VALUES ('Rick', 'rick@example.com', 'example.com')</code>
<p class="important">Note: Values are automatically escaped, producing safer queries.</p>
@@ -127,7 +127,7 @@ $str = $this->db->update_string('table_name', $data, $where);
</code>
<p>The first parameter is the table name, the second is an associative array with the data to be updated, and the third parameter is the "where" clause. The above example produces:</p>
-<code> UPDATE table_name SET name = 'Rick', email = 'rick@your-site.com', url = 'www.your-site.com' WHERE author_id = 1 AND status = 'active'</code>
+<code> UPDATE table_name SET name = 'Rick', email = 'rick@example.com', url = 'example.com' WHERE author_id = 1 AND status = 'active'</code>
<p class="important">Note: Values are automatically escaped, producing safer queries.</p>
diff --git a/user_guide/general/controllers.html b/user_guide/general/controllers.html
index 034f1b23c..6f568d49e 100644
--- a/user_guide/general/controllers.html
+++ b/user_guide/general/controllers.html
@@ -82,7 +82,7 @@ Controllers
<p>Consider this URI:</p>
-<code>www.your-site.com/index.php/<var>blog</var>/</code>
+<code>example.com/index.php/<var>blog</var>/</code>
<p>In the above example, CodeIgniter would attempt to find a controller named <dfn>blog.php</dfn> and load it.</p>
@@ -112,7 +112,7 @@ class Blog extends Controller {
<p>Now visit the your site using a URL similar to this:</p>
-<code>www.your-site.com/index.php/<var>blog</var>/</code>
+<code>example.com/index.php/<var>blog</var>/</code>
<p>If you did it right, you should see <samp>Hello World!</samp>.</p>
@@ -142,7 +142,7 @@ class <var>blog</var> extends Controller {<br />
<p>In the above example the function name is <dfn>index()</dfn>. The "index" function is always loaded by default if the
<strong>second segment</strong> of the URI is empty. Another way to show your "Hello World" message would be this:</p>
-<code>www.your-site.com/index.php/<var>blog</var>/<samp>index</samp>/</code>
+<code>example.com/index.php/<var>blog</var>/<samp>index</samp>/</code>
<p><strong>The second segment of the URI determines which function in the controller gets called.</strong></p>
@@ -168,7 +168,7 @@ class Blog extends Controller {
<p>Now load the following URL to see the <dfn>comment</dfn> function:</p>
-<code>www.your-site.com/index.php/<var>blog</var>/<samp>comments</samp>/</code>
+<code>example.com/index.php/<var>blog</var>/<samp>comments</samp>/</code>
<p>You should see your new message.</p>
@@ -179,7 +179,7 @@ class Blog extends Controller {
<p>For example, lets say you have a URI like this:</p>
-<code>www.your-site.com/index.php/<var>products</var>/<samp>shoes</samp>/<kbd>sandals</kbd>/<dfn>123</dfn></code>
+<code>example.com/index.php/<var>products</var>/<samp>shoes</samp>/<kbd>sandals</kbd>/<dfn>123</dfn></code>
<p>Your function will be passed URI segments 3 and 4 ("sandals" and "123"):</p>
@@ -287,7 +287,7 @@ function _utility()<br />
<p>Trying to access it via the URL, like this, will not work:</p>
-<code>www.your-site.com/index.php/<var>blog</var>/<samp>_utility</samp>/</code>
+<code>example.com/index.php/<var>blog</var>/<samp>_utility</samp>/</code>
@@ -305,7 +305,7 @@ located here:</p>
<p>To call the above controller your URI will look something like this:</p>
-<code>www.your-site.com/index.php/products/shoes/show/123</code>
+<code>example.com/index.php/products/shoes/show/123</code>
<p>Each of your sub-folders may contain a default controller which will be
called if the URL contains only the sub-folder. Simply name your default controller as specified in your
diff --git a/user_guide/general/routing.html b/user_guide/general/routing.html
index b282e18d8..f3e7995a8 100644
--- a/user_guide/general/routing.html
+++ b/user_guide/general/routing.html
@@ -60,7 +60,7 @@ URI Routing
<p>Typically there is a one-to-one relationship between a URL string and its corresponding controller class/method.
The segments in a URI normally follow this pattern:</p>
-<code>www.your-site.com/<dfn>class</dfn>/<samp>function</samp>/<var>id</var>/</code>
+<code>example.com/<dfn>class</dfn>/<samp>function</samp>/<var>id</var>/</code>
<p>In some instances, however, you may want to remap this relationship so that a different class/function can be called
instead of the one corresponding to the URL.</p>
@@ -68,10 +68,10 @@ instead of the one corresponding to the URL.</p>
<p>For example, lets say you want your URLs to have this prototype:</p>
<p>
-www.your-site.com/product/1/<br />
-www.your-site.com/product/2/<br />
-www.your-site.com/product/3/<br />
-www.your-site.com/product/4/
+example.com/product/1/<br />
+example.com/product/2/<br />
+example.com/product/3/<br />
+example.com/product/4/
</p>
<p>Normally the second segment of the URL is reserved for the function name, but in the example above it instead has a product ID.
diff --git a/user_guide/general/scaffolding.html b/user_guide/general/scaffolding.html
index 417cb1005..14eed1718 100644
--- a/user_guide/general/scaffolding.html
+++ b/user_guide/general/scaffolding.html
@@ -113,12 +113,12 @@ class Blog extends Controller {<br />
<p>Once you've initialized scaffolding, you will access it with this URL prototype:</p>
-<code>www.your-site.com/index.php/<var>class</var>/<dfn>secret_word</dfn>/</code>
+<code>example.com/index.php/<var>class</var>/<dfn>secret_word</dfn>/</code>
<p>For example, using a controller named <var>Blog</var>, and <dfn>abracadabra</dfn> as the secret word,
you would access scaffolding like this:</p>
-<code>www.your-site.com/index.php/<var>blog</var>/<dfn>abracadabra</dfn>/</code>
+<code>example.com/index.php/<var>blog</var>/<dfn>abracadabra</dfn>/</code>
<p>The scaffolding interface should be self-explanatory. You can add, edit or delete records.</p>
diff --git a/user_guide/general/urls.html b/user_guide/general/urls.html
index 9230f98c8..bbfd009ce 100644
--- a/user_guide/general/urls.html
+++ b/user_guide/general/urls.html
@@ -61,7 +61,7 @@ URLS
<p>By default, URLs in CodeIgniter are designed to be search-engine and human friendly. Rather than using the standard "query string"
approach to URLs that is synonymous with dynamic systems, CodeIgniter uses a <strong>segment-based</strong> approach:</p>
-<code>www.your-site.com/<var>news</var>/<dfn>article</dfn>/<samp>my_article</samp></code>
+<code>example.com/<var>news</var>/<dfn>article</dfn>/<samp>my_article</samp></code>
<p class="important"><strong>Note:</strong> Query string URLs can be optionally enabled, as described below.</p>
@@ -69,7 +69,7 @@ approach to URLs that is synonymous with dynamic systems, CodeIgniter uses a <st
<p>The segments in the URL, in following with the Model-View-Controller approach, usually represent:</p>
-<code>www.your-site.com/<var>class</var>/<dfn>function</dfn>/<samp>ID</samp></code>
+<code>example.com/<var>class</var>/<dfn>function</dfn>/<samp>ID</samp></code>
<ol>
<li>The first segment represents the controller <strong>class</strong> that should be invoked.</li>
@@ -87,7 +87,7 @@ contain functions that make it easy to work with your URI data. In addition, yo
<p>By default, the <strong>index.php</strong> file will be included in your URLs:</p>
-<code>www.your-site.com/<var>index.php</var>/news/article/my_article</code>
+<code>example.com/<var>index.php</var>/news/article/my_article</code>
<p>You can easily remove this file by using a .htaccess file with some simple rules. Here is an example
of such a file, using the "negative" method in which everything is redirected except the specified items:</p>
@@ -105,11 +105,11 @@ a request for your index.php file.</p>
<p>In your <dfn>config/config.php</dfn> file you can specify a suffix that will be added to all URLs generated
by CodeIgniter. For example, if a URL is this:</p>
-<code>www.your-site.com/index.php/products/view/shoes</code>
+<code>example.com/index.php/products/view/shoes</code>
<p>You can optionally add a suffix, like <kbd>.html</kbd>, making the page appear to be of a certain type:</p>
-<code>www.your-site.com/index.php/products/view/shoes.html</code>
+<code>example.com/index.php/products/view/shoes.html</code>
<h2>Enabling Query Strings</h2>
diff --git a/user_guide/general/views.html b/user_guide/general/views.html
index 3417f55b4..8ccc8d471 100644
--- a/user_guide/general/views.html
+++ b/user_guide/general/views.html
@@ -111,7 +111,7 @@ class Blog extends Controller {
<p>If you visit the your site using the URL you did earlier you should see your new view. The URL was similar to this:</p>
-<code>www.your-site.com/index.php/<var>blog</var>/</code>
+<code>example.com/index.php/<var>blog</var>/</code>
<h2>Loading multiple views</h2>
<p>CodeIgniter will intelligently handle multiple calls to $this-&gt;load-&gt;view from within a controller. If more then one call happens they will be appended together. For example, you may wish to have a header view, a menu view, a content view, and a footer view. That might look something like this:</p>
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>
diff --git a/user_guide/installation/upgrade_130.html b/user_guide/installation/upgrade_130.html
index 9c91adae2..8e34e2521 100644
--- a/user_guide/installation/upgrade_130.html
+++ b/user_guide/installation/upgrade_130.html
@@ -131,12 +131,12 @@ replace this folder:</p>
| This option allows you to add a suffix to all URLs.
| For example, if a URL is this:
|
-| www.your-site.com/index.php/products/view/shoes
+| example.com/index.php/products/view/shoes
|
| You can optionally add a suffix, like ".html",
| making the page appear to be of a certain type:
|
-| www.your-site.com/index.php/products/view/shoes.html
+| example.com/index.php/products/view/shoes.html
|
*/
$config['url_suffix'] = "";
@@ -150,18 +150,18 @@ $config['url_suffix'] = "";
| By default CodeIgniter uses search-engine and
| human-friendly segment based URLs:
|
-| www.your-site.com/who/what/where/
+| example.com/who/what/where/
|
| You can optionally enable standard query string
| based URLs:
|
-| www.your-site.com?who=me&what=something&where=here
+| example.com?who=me&what=something&where=here
|
| Options are: TRUE or FALSE (boolean)
|
| The two other items let you set the query string "words"
| that will invoke your controllers and functions:
-| www.your-site.com/index.php?c=controller&m=function
+| example.com/index.php?c=controller&m=function
|
*/
$config['enable_query_strings'] = FALSE;
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>
diff --git a/user_guide/overview/at_a_glance.html b/user_guide/overview/at_a_glance.html
index 6dc9287b7..0a9fa53b3 100644
--- a/user_guide/overview/at_a_glance.html
+++ b/user_guide/overview/at_a_glance.html
@@ -97,7 +97,7 @@ This is particularly good for projects in which designers are working with your
<p>The URLs generated by CodeIgniter are clean and search-engine friendly. Rather than using the standard "query string"
approach to URLs that is synonymous with dynamic systems, CodeIgniter uses a segment-based approach:</p>
-<code>www.your-site.com/<var>news</var>/<dfn>article</dfn>/<samp>345</samp></code>
+<code>example.com/<var>news</var>/<dfn>article</dfn>/<samp>345</samp></code>
<p>Note: By default the index.php file is included in the URL but it can be removed using a simple .htaccess file.</p>