summaryrefslogtreecommitdiffstats
path: root/user_guide
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-12-07 18:04:56 +0100
committerDerek Allard <derek.allard@ellislab.com>2008-12-07 18:04:56 +0100
commit4b6d493593b7400b7fa81d976fd3dc07ad30fe86 (patch)
tree47101b0343b13efb34912806a6b21c370e4b75e5 /user_guide
parent3f45bbdcfabac41fa3ee33277a21727f71de991a (diff)
changed some code in examples from <?php to &lt;?php in the event that a local install tries to interpret the example as code
Diffstat (limited to 'user_guide')
-rw-r--r--user_guide/general/controllers.html8
-rw-r--r--user_guide/general/views.html4
-rw-r--r--user_guide/libraries/file_uploading.html4
-rw-r--r--user_guide/libraries/form_validation.html4
-rw-r--r--user_guide/libraries/validation.html4
-rw-r--r--user_guide/libraries/xmlrpc.html4
6 files changed, 14 insertions, 14 deletions
diff --git a/user_guide/general/controllers.html b/user_guide/general/controllers.html
index f11d09215..c13f218b9 100644
--- a/user_guide/general/controllers.html
+++ b/user_guide/general/controllers.html
@@ -95,7 +95,7 @@ Controllers
<textarea class="textarea" style="width:100%" cols="50" rows="10">
-<?php
+&lt;?php
class Blog extends Controller {
function index()
@@ -103,7 +103,7 @@ class Blog extends Controller {
echo 'Hello World!';
}
}
-?>
+?&gt;
</textarea>
@@ -150,7 +150,7 @@ class <var>blog</var> extends Controller {<br />
<textarea class="textarea" style="width:100%" cols="50" rows="15">
-<?php
+&lt;?php
class Blog extends Controller {
function index()
@@ -163,7 +163,7 @@ class Blog extends Controller {
echo 'Look at this!';
}
}
-?>
+?&gt;
</textarea>
<p>Now load the following URL to see the <dfn>comment</dfn> function:</p>
diff --git a/user_guide/general/views.html b/user_guide/general/views.html
index a8c3d6029..120e7bbfb 100644
--- a/user_guide/general/views.html
+++ b/user_guide/general/views.html
@@ -97,7 +97,7 @@ you should do so before continuing.</p>
<textarea class="textarea" style="width:100%" cols="50" rows="10">
-<?php
+&lt;?php
class Blog extends Controller {
function index()
@@ -105,7 +105,7 @@ class Blog extends Controller {
$this->load->view('blogview');
}
}
-?>
+?&gt;
</textarea>
diff --git a/user_guide/libraries/file_uploading.html b/user_guide/libraries/file_uploading.html
index a840c1ec3..ef8ecf186 100644
--- a/user_guide/libraries/file_uploading.html
+++ b/user_guide/libraries/file_uploading.html
@@ -142,7 +142,7 @@ In it, place this code and save it to your <samp>applications/views/</samp> fold
folder:</p>
-<textarea class="textarea" style="width:100%" cols="50" rows="43"><?php
+<textarea class="textarea" style="width:100%" cols="50" rows="43">&lt;?php
class Upload extends Controller {
@@ -181,7 +181,7 @@ class Upload extends Controller {
}
}
}
-?></textarea>
+?&gt;</textarea>
<h2>The Upload Folder</h2>
diff --git a/user_guide/libraries/form_validation.html b/user_guide/libraries/form_validation.html
index 684fe9b51..b49117ed7 100644
--- a/user_guide/libraries/form_validation.html
+++ b/user_guide/libraries/form_validation.html
@@ -313,7 +313,7 @@ $this->form_validation->set_rules('email', 'Email', 'required');<br />
<p>Your controller should now look like this:</p>
-<textarea class="textarea" style="width:100%" cols="50" rows="28"><?php
+<textarea class="textarea" style="width:100%" cols="50" rows="28">&lt;?php
class Form extends Controller {
@@ -515,7 +515,7 @@ create a callback function that does that. Let's create a example of this.</p>
<p>Then add a new function called <dfn>username_check</dfn> to your controller. Here's how your controller should now look:</p>
-<textarea class="textarea" style="width:100%" cols="50" rows="44"><?php
+<textarea class="textarea" style="width:100%" cols="50" rows="44">&lt;?php
class Form extends Controller {
diff --git a/user_guide/libraries/validation.html b/user_guide/libraries/validation.html
index 394be1901..821e3cfa3 100644
--- a/user_guide/libraries/validation.html
+++ b/user_guide/libraries/validation.html
@@ -240,7 +240,7 @@ $this->validation->set_rules($rules);</code>
<p>Your controller should now look like this:</p>
-<textarea class="textarea" style="width:100%" cols="50" rows="28"><?php
+<textarea class="textarea" style="width:100%" cols="50" rows="28">&lt;?php
class Form extends Controller {
@@ -340,7 +340,7 @@ create a callback function that does that. Let's create a simple example.</p>
<p>Then add a new function called <dfn>username_check</dfn> to your controller. Here's how your controller should look:</p>
-<textarea class="textarea" style="width:100%" cols="50" rows="44"><?php
+<textarea class="textarea" style="width:100%" cols="50" rows="44">&lt;?php
class Form extends Controller {
diff --git a/user_guide/libraries/xmlrpc.html b/user_guide/libraries/xmlrpc.html
index e329e4a95..c5f383929 100644
--- a/user_guide/libraries/xmlrpc.html
+++ b/user_guide/libraries/xmlrpc.html
@@ -319,7 +319,7 @@ XML-RPC Client and Server. You'll use the Client to send a request to the Serve
<p>Using a text editor, create a controller called <dfn>xmlrpc_client.php</dfn>.
In it, place this code and save it to your <samp>applications/controllers/</samp> folder:</p>
-<textarea class="textarea" style="width:100%" cols="50" rows="32"><?php
+<textarea class="textarea" style="width:100%" cols="50" rows="32">&lt;?php
class Xmlrpc_client extends Controller {
@@ -357,7 +357,7 @@ class Xmlrpc_client extends Controller {
<p>Using a text editor, create a controller called <dfn>xmlrpc_server.php</dfn>.
In it, place this code and save it to your <samp>applications/controllers/</samp> folder:</p>
-<textarea class="textarea" style="width:100%" cols="50" rows="30"><?php
+<textarea class="textarea" style="width:100%" cols="50" rows="30">&lt;?php
class Xmlrpc_server extends Controller {