From ff845f94cc8876bc6c23c2f55b695bc569038512 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Thu, 26 Jun 2008 17:05:55 +0000 Subject: changed your-site.com to example.com doc-wide --- user_guide/general/controllers.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'user_guide/general/controllers.html') 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

Consider this URI:

-www.your-site.com/index.php/blog/ +example.com/index.php/blog/

In the above example, CodeIgniter would attempt to find a controller named blog.php and load it.

@@ -112,7 +112,7 @@ class Blog extends Controller {

Now visit the your site using a URL similar to this:

-www.your-site.com/index.php/blog/ +example.com/index.php/blog/

If you did it right, you should see Hello World!.

@@ -142,7 +142,7 @@ class blog extends Controller {

In the above example the function name is index(). The "index" function is always loaded by default if the second segment of the URI is empty. Another way to show your "Hello World" message would be this:

-www.your-site.com/index.php/blog/index/ +example.com/index.php/blog/index/

The second segment of the URI determines which function in the controller gets called.

@@ -168,7 +168,7 @@ class Blog extends Controller {

Now load the following URL to see the comment function:

-www.your-site.com/index.php/blog/comments/ +example.com/index.php/blog/comments/

You should see your new message.

@@ -179,7 +179,7 @@ class Blog extends Controller {

For example, lets say you have a URI like this:

-www.your-site.com/index.php/products/shoes/sandals/123 +example.com/index.php/products/shoes/sandals/123

Your function will be passed URI segments 3 and 4 ("sandals" and "123"):

@@ -287,7 +287,7 @@ function _utility()

Trying to access it via the URL, like this, will not work:

-www.your-site.com/index.php/blog/_utility/ +example.com/index.php/blog/_utility/ @@ -305,7 +305,7 @@ located here:

To call the above controller your URI will look something like this:

-www.your-site.com/index.php/products/shoes/show/123 +example.com/index.php/products/shoes/show/123

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 -- cgit v1.2.3-24-g4f1b