summaryrefslogtreecommitdiffstats
path: root/user_guide/libraries
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/libraries
parent63277b81edde11b77ff94cbf1c3e5db16c97c4bf (diff)
Updating code examples in user guide to use CI_Controller instead of Controller
Diffstat (limited to 'user_guide/libraries')
-rw-r--r--user_guide/libraries/file_uploading.html4
-rw-r--r--user_guide/libraries/form_validation.html8
-rw-r--r--user_guide/libraries/xmlrpc.html8
3 files changed, 10 insertions, 10 deletions
diff --git a/user_guide/libraries/file_uploading.html b/user_guide/libraries/file_uploading.html
index 254b2666a..ea0e2a283 100644
--- a/user_guide/libraries/file_uploading.html
+++ b/user_guide/libraries/file_uploading.html
@@ -144,11 +144,11 @@ folder:</p>
<textarea class="textarea" style="width:100%" cols="50" rows="43">&lt;?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 18f391a57..eae2036c1 100644
--- a/user_guide/libraries/form_validation.html
+++ b/user_guide/libraries/form_validation.html
@@ -221,7 +221,7 @@ folder:</p>
<textarea class="textarea" style="width:100%" cols="50" rows="21">&lt;?php
-class Form extends Controller {
+class Form extends CI_Controller {
function index()
{
@@ -312,7 +312,7 @@ $this->form_validation->set_rules('email', 'Email', 'required');<br />
<textarea class="textarea" style="width:100%" cols="50" rows="28">&lt;?php
-class Form extends Controller {
+class Form extends CI_Controller {
function index()
{
@@ -514,7 +514,7 @@ create a callback function that does that. Let's create a example of this.</p>
<textarea class="textarea" style="width:100%" cols="50" rows="44">&lt;?php
-class Form extends Controller {
+class Form extends CI_Controller {
function index()
{
@@ -805,7 +805,7 @@ have a controller named <kbd>Member</kbd> and a function named <kbd>signup</kbd>
<code>
&lt;?php<br /><br />
-class <kbd>Member</kbd> extends Controller {<br />
+class <kbd>Member</kbd> extends CI_Controller {<br />
<br />
&nbsp;&nbsp;&nbsp;function <kbd>signup</kbd>()<br />
&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
diff --git a/user_guide/libraries/xmlrpc.html b/user_guide/libraries/xmlrpc.html
index 971ab0296..87ca09480 100644
--- a/user_guide/libraries/xmlrpc.html
+++ b/user_guide/libraries/xmlrpc.html
@@ -211,7 +211,7 @@ an object to that method containing the data sent by the client.</p>
<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 />
&nbsp;&nbsp;&nbsp;&nbsp;function <kbd>new_post</kbd>(<var>$request</var>)<br />
&nbsp;&nbsp;&nbsp;&nbsp;{<br />
@@ -230,7 +230,7 @@ back information about that particular user (nickname, user ID, email address, e
function might look:</p>
-<code>class <kbd>My_blog</kbd> extends Controller {<br />
+<code>class <kbd>My_blog</kbd> extends CI_Controller {<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;function <kbd>getUserInfo</kbd>(<var>$request</var>)<br />
&nbsp;&nbsp;&nbsp;&nbsp;{<br />
@@ -323,7 +323,7 @@ In it, place this code and save it to your <samp>applications/controllers/</samp
<textarea class="textarea" style="width:100%" cols="50" rows="32">&lt;?php
-class Xmlrpc_client extends Controller {
+class Xmlrpc_client extends CI_Controller {
function index()
{
@@ -361,7 +361,7 @@ In it, place this code and save it to your <samp>applications/controllers/</samp
<textarea class="textarea" style="width:100%" cols="50" rows="30">&lt;?php
-class Xmlrpc_server extends Controller {
+class Xmlrpc_server extends CI_Controller {
function index()
{