From d2df9bc7cc9d4b3e53818470c5d0977c9a36677c Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Sun, 15 Apr 2007 17:41:17 +0000 Subject: update pMachine to EllisLab update copyright year update Code Igniter to CodeIgniter --- user_guide/general/controllers.html | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'user_guide/general/controllers.html') diff --git a/user_guide/general/controllers.html b/user_guide/general/controllers.html index 0bb4ac444..f80325ea2 100644 --- a/user_guide/general/controllers.html +++ b/user_guide/general/controllers.html @@ -2,7 +2,7 @@ -Code Igniter User Guide +CodeIgniter User Guide @@ -22,7 +22,7 @@ window.onload = function() { - + @@ -33,7 +33,7 @@ window.onload = function() {
- +

Code Igniter User Guide Version 1.5.2

CodeIgniter User Guide Version 1.5.3

@@ -45,7 +45,7 @@ window.onload = function() { @@ -89,7 +89,7 @@ Controllers www.your-site.com/index.php/blog/ -

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

+

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

When a controller's name matches the first segment of a URI, it will be loaded.

@@ -208,7 +208,7 @@ passed to your function will be the re-routed ones.

Defining a Default Controller

-

Code Igniter can be told to load a default controller when a URI is not present, +

CodeIgniter can be told to load a default controller when a URI is not present, as will be the case when only your site root URL is requested. To specify a default controller, open your application/config/routes.php file and set this variable:

@@ -223,7 +223,7 @@ specifying any URI segments you'll see your Hello World message by default.

Remapping Function Calls

As noted above, the second segment of the URI typically determines which function in the controller gets called. -Code Igniter permits you to override this behavior through the use of the _remap() function:

+CodeIgniter permits you to override this behavior through the use of the _remap() function:

function _remap()
{
@@ -255,9 +255,9 @@ allowing you to define your own function routing rules.

Processing Output

-

Code Igniter has an output class that takes care of sending your final rendered data to the web browser automatically. More information on this can be found in the +

CodeIgniter has an output class that takes care of sending your final rendered data to the web browser automatically. More information on this can be found in the Views and Output class pages. In some cases, however, you might want to -post-process the finalized data in some way and send it to the browser yourself. Code Igniter permits you to +post-process the finalized data in some way and send it to the browser yourself. CodeIgniter permits you to add a function named _output() to your controller that will receive the finalized output data.

Important:  If your controller contains a function named _output(), it will always @@ -299,7 +299,7 @@ function _utility()

Organizing Your Controllers into Sub-folders

-

If you are building a large application you might find it convenient to organize your controllers into sub-folders. Code Igniter permits you to do this.

+

If you are building a large application you might find it convenient to organize your controllers into sub-folders. CodeIgniter permits you to do this.

Simply create folders within your application/controllers directory and place your controller classes within them.

@@ -317,7 +317,7 @@ called if the URL contains only the sub-folder. Simply name your default contro application/config/routes.php file

-

Code Igniter also permits you to remap your URIs using its URI Routing feature. +

CodeIgniter also permits you to remap your URIs using its URI Routing feature. @@ -421,14 +421,14 @@ is a list of reserved names. Do not name your controller functions any of these

-- cgit v1.2.3-24-g4f1b