summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/general/controllers.rst
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2011-10-07 12:45:06 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-10-07 12:45:06 +0200
commit0252fc7ddf80262f915b20100107ec79ba3ccf01 (patch)
treeabde8bdb7fbf6cc9d19695c7e1cf69ea8712dc09 /user_guide_src/source/general/controllers.rst
parenta3e952ee84cc4a87c97328a422a9d6b8be2a341b (diff)
parent5ebf9d1d29f73c5b941fc7bb2e0a2cdcb347f74e (diff)
Merge pull request #546 from purwandi/develop
Fix CodeIgniter URLs, Controller and Views on User Guide
Diffstat (limited to 'user_guide_src/source/general/controllers.rst')
-rw-r--r--user_guide_src/source/general/controllers.rst9
1 files changed, 4 insertions, 5 deletions
diff --git a/user_guide_src/source/general/controllers.rst b/user_guide_src/source/general/controllers.rst
index c3c19cc62..6e5079419 100644
--- a/user_guide_src/source/general/controllers.rst
+++ b/user_guide_src/source/general/controllers.rst
@@ -10,8 +10,8 @@ HTTP requests should be handled.
What is a Controller?
=====================
-A Controller is simply a class file that is named in a way that can be
-associated with a URI.
+**A Controller is simply a class file that is named in a way that can be
+associated with a URI.**
Consider this URI::
@@ -136,7 +136,7 @@ Defining a Default Controller
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
+To specify a default controller, open your **application/config/routes.php**
file and set this variable::
$route['default_controller'] = 'Blog';
@@ -199,8 +199,7 @@ Processing Output
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 :doc::doc:`Views <views>` and `Output
-class <../libraries/output>` pages. In some cases, however, you
+can be found in the :doc:`Views <views>` and :doc:`Output class <../libraries/output>` pages. In some cases, however, you
might want 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