summaryrefslogtreecommitdiffstats
path: root/user_guide/general/views.html
diff options
context:
space:
mode:
authorGreg Aker <greg.aker@ellislab.com>2010-11-09 20:53:07 +0100
committerGreg Aker <greg.aker@ellislab.com>2010-11-09 20:53:07 +0100
commit16fcb2e706651c5d81bae56d0223f467c1e291da (patch)
tree9eb454b6602646d4402d4cb89856e99bee0f47c5 /user_guide/general/views.html
parent63277b81edde11b77ff94cbf1c3e5db16c97c4bf (diff)
Updating code examples in user guide to use CI_Controller instead of Controller
Diffstat (limited to 'user_guide/general/views.html')
-rw-r--r--user_guide/general/views.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/user_guide/general/views.html b/user_guide/general/views.html
index 8f317109e..228eb64b5 100644
--- a/user_guide/general/views.html
+++ b/user_guide/general/views.html
@@ -98,7 +98,7 @@ you should do so before continuing.</p>
<textarea class="textarea" style="width:100%" cols="50" rows="10">
&lt;?php
-class Blog extends Controller {
+class Blog extends CI_Controller {
function index()
{
@@ -117,7 +117,7 @@ class Blog extends Controller {
<p>CodeIgniter will intelligently handle multiple calls to $this-&gt;load-&gt;view from within a controller. If more than 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>
<p><code>&lt;?php<br />
<br />
-class Page extends Controller {<br /><br />
+class Page extends CI_Controller {<br /><br />
&nbsp;&nbsp;&nbsp;function index()<br />
&nbsp;&nbsp;&nbsp;{<br />
@@ -163,7 +163,7 @@ $this->load->view('blogview', <var>$data</var>);</code>
<textarea class="textarea" style="width:100%" cols="50" rows="14">
&lt;?php
-class Blog extends Controller {
+class Blog extends CI_Controller {
function index()
{
@@ -203,7 +203,7 @@ pull data from your database it will typically be in the form of a multi-dimensi
<textarea class="textarea" style="width:100%" cols="50" rows="17">
&lt;?php
-class Blog extends Controller {
+class Blog extends CI_Controller {
function index()
{