Updating code examples in user guide to use CI_Controller instead of Controller
diff --git a/user_guide/general/views.html b/user_guide/general/views.html
index 8f31710..228eb64 100644
--- a/user_guide/general/views.html
+++ b/user_guide/general/views.html
@@ -98,7 +98,7 @@
<textarea class="textarea" style="width:100%" cols="50" rows="10">
<?php
-class Blog extends Controller {
+class Blog extends CI_Controller {
function index()
{
@@ -117,7 +117,7 @@
<p>CodeIgniter will intelligently handle multiple calls to $this->load->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><?php<br />
<br />
-class Page extends Controller {<br /><br />
+class Page extends CI_Controller {<br /><br />
function index()<br />
{<br />
@@ -163,7 +163,7 @@
<textarea class="textarea" style="width:100%" cols="50" rows="14">
<?php
-class Blog extends Controller {
+class Blog extends CI_Controller {
function index()
{
@@ -203,7 +203,7 @@
<textarea class="textarea" style="width:100%" cols="50" rows="17">
<?php
-class Blog extends Controller {
+class Blog extends CI_Controller {
function index()
{
diff --git a/user_guide/helpers/smiley_helper.html b/user_guide/helpers/smiley_helper.html
index d95562d..d7c2d16 100644
--- a/user_guide/helpers/smiley_helper.html
+++ b/user_guide/helpers/smiley_helper.html
@@ -99,11 +99,11 @@
<textarea class="textarea" style="width:100%" cols="50" rows="25">
<?php
-class Smileys extends Controller {
+class Smileys extends CI_Controller {
function Smileys()
{
- parent::Controller();
+ parent::CI_Controller();
}
function index()
diff --git a/user_guide/libraries/file_uploading.html b/user_guide/libraries/file_uploading.html
index 254b266..ea0e2a2 100644
--- a/user_guide/libraries/file_uploading.html
+++ b/user_guide/libraries/file_uploading.html
@@ -144,11 +144,11 @@
<textarea class="textarea" style="width:100%" cols="50" rows="43"><?php
-class Upload extends Controller {
+class Upload extends CI_Controller {
function Upload()
{
- parent::Controller();
+ parent::CI_Controller();
$this->load->helper(array('form', 'url'));
}
diff --git a/user_guide/libraries/form_validation.html b/user_guide/libraries/form_validation.html
index 18f391a..eae2036 100644
--- a/user_guide/libraries/form_validation.html
+++ b/user_guide/libraries/form_validation.html
@@ -221,7 +221,7 @@
<textarea class="textarea" style="width:100%" cols="50" rows="21"><?php
-class Form extends Controller {
+class Form extends CI_Controller {
function index()
{
@@ -312,7 +312,7 @@
<textarea class="textarea" style="width:100%" cols="50" rows="28"><?php
-class Form extends Controller {
+class Form extends CI_Controller {
function index()
{
@@ -514,7 +514,7 @@
<textarea class="textarea" style="width:100%" cols="50" rows="44"><?php
-class Form extends Controller {
+class Form extends CI_Controller {
function index()
{
@@ -805,7 +805,7 @@
<code>
<?php<br /><br />
-class <kbd>Member</kbd> extends Controller {<br />
+class <kbd>Member</kbd> extends CI_Controller {<br />
<br />
function <kbd>signup</kbd>()<br />
{ <br />
diff --git a/user_guide/libraries/xmlrpc.html b/user_guide/libraries/xmlrpc.html
index 971ab02..87ca094 100644
--- a/user_guide/libraries/xmlrpc.html
+++ b/user_guide/libraries/xmlrpc.html
@@ -211,7 +211,7 @@
<p>Using the above example, if the <var>new_post</var> method is requested, the server will expect a class
to exist with this prototype:</p>
-<code>class <kbd>My_blog</kbd> extends Controller {<br />
+<code>class <kbd>My_blog</kbd> extends CI_Controller {<br />
<br />
function <kbd>new_post</kbd>(<var>$request</var>)<br />
{<br />
@@ -230,7 +230,7 @@
function might look:</p>
-<code>class <kbd>My_blog</kbd> extends Controller {<br />
+<code>class <kbd>My_blog</kbd> extends CI_Controller {<br />
<br />
function <kbd>getUserInfo</kbd>(<var>$request</var>)<br />
{<br />
@@ -323,7 +323,7 @@
<textarea class="textarea" style="width:100%" cols="50" rows="32"><?php
-class Xmlrpc_client extends Controller {
+class Xmlrpc_client extends CI_Controller {
function index()
{
@@ -361,7 +361,7 @@
<textarea class="textarea" style="width:100%" cols="50" rows="30"><?php
-class Xmlrpc_server extends Controller {
+class Xmlrpc_server extends CI_Controller {
function index()
{