summaryrefslogtreecommitdiffstats
path: root/user_guide/general/controllers.html
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2007-07-05 01:54:32 +0200
committerDerek Allard <derek.allard@ellislab.com>2007-07-05 01:54:32 +0200
commitc644128fdd49a47d791240e0e38b54cd22412bc5 (patch)
treefd2135d295c103395f5d0bd89056b0e798cfcdb3 /user_guide/general/controllers.html
parent691010e72ec7fb4a05740332a10b5f046a82c666 (diff)
fixed validation errors... about a zillion of em.
Diffstat (limited to 'user_guide/general/controllers.html')
-rw-r--r--user_guide/general/controllers.html15
1 files changed, 6 insertions, 9 deletions
diff --git a/user_guide/general/controllers.html b/user_guide/general/controllers.html
index c61660d34..5d83edcd6 100644
--- a/user_guide/general/controllers.html
+++ b/user_guide/general/controllers.html
@@ -121,7 +121,7 @@ class Blog extends Controller {
<p>If you did it right, you should see <samp>Hello World!</samp>.</p>
-<p>Note: Class names must start with an uppercase letter. In other words, this is valid:
+<p>Note: Class names must start with an uppercase letter. In other words, this is valid:</p>
<code>&lt;?php<br />
class <var>Blog</var> extends Controller {<br />
@@ -182,7 +182,7 @@ class Blog extends Controller {
<p>If your URI contains more then two segments they will be passed to your function as parameters.</p>
-<p>For example, lets say you have a URI like this:
+<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>
@@ -258,7 +258,7 @@ allowing you to define your own function routing rules.</p>
<p>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
<a href="views.html">Views</a> and <a href="../libraries/output.html">Output class</a> 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 <dfn>_output()</dfn> to your controller that will receive the finalized output data.
+add a function named <dfn>_output()</dfn> to your controller that will receive the finalized output data.</p>
<p><strong>Important:</strong>&nbsp; If your controller contains a function named <kbd>_output()</kbd>, it will <strong>always</strong>
be called by the output class instead of echoing the finalized data directly. The first parameter of the function will contain the finalized output.</p>
@@ -317,12 +317,10 @@ called if the URL contains only the sub-folder. Simply name your default contro
<dfn>application/config/routes.php</dfn> file</p>
-<p>CodeIgniter also permits you to remap your URIs using its <a href="routing.html">URI Routing</a> feature.
+<p>CodeIgniter also permits you to remap your URIs using its <a href="routing.html">URI Routing</a> feature.</p>
-
-<a name="constructors"></a>
-<h2>Class Constructors</h2>
+<h2><a name="constructors"></a>Class Constructors</h2>
<p>If you intend to use a constructor in any of your Controllers, you <strong>MUST</strong> place the following line of code in it:</p>
@@ -426,8 +424,7 @@ Previous Topic:&nbsp;&nbsp;<a href="urls.html">CodeIgniter URLs</a>
<a href="#top">Top of Page</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
<a href="../index.html">User Guide Home</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
Next Topic:&nbsp;&nbsp;<a href="views.html">Views</a>
-<p>
-
+</p>
<p><a href="http://www.codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2007 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p>
</div>