summaryrefslogtreecommitdiffstats
path: root/user_guide/general
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/general
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/general')
-rw-r--r--user_guide/general/controllers.html8
-rw-r--r--user_guide/general/views.html4
2 files changed, 6 insertions, 6 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>