summaryrefslogtreecommitdiffstats
path: root/user_guide/libraries/validation.html
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/libraries/validation.html
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/libraries/validation.html')
-rw-r--r--user_guide/libraries/validation.html4
1 files changed, 2 insertions, 2 deletions
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 {