summaryrefslogtreecommitdiffstats
path: root/user_guide/general
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-03-04 21:55:55 +0100
committerDerek Allard <derek.allard@ellislab.com>2008-03-04 21:55:55 +0100
commitce66d155eca7d447bdcc6feb47c17647ac754c35 (patch)
treeafb151684db88f9137ab574f57b37288b9e2f008 /user_guide/general
parent2934e286158074d6131d8a9ce0f01ea1c23e2678 (diff)
validation error fixes
Diffstat (limited to 'user_guide/general')
-rw-r--r--user_guide/general/creating_libraries.html10
-rw-r--r--user_guide/general/hooks.html2
-rw-r--r--user_guide/general/profiling.html14
-rw-r--r--user_guide/general/security.html3
-rw-r--r--user_guide/general/urls.html6
5 files changed, 13 insertions, 22 deletions
diff --git a/user_guide/general/creating_libraries.html b/user_guide/general/creating_libraries.html
index 6a4773be4..d32dda9d0 100644
--- a/user_guide/general/creating_libraries.html
+++ b/user_guide/general/creating_libraries.html
@@ -179,12 +179,13 @@ If you would like to use CodeIgniter's classes from within your own custom class
<p>First, assign the CodeIgniter object to a variable:</p>
-<code>$CI =& get_instance();</code>
+<code>$CI =&amp; get_instance();</code>
<p>Once you've assigned the object to a variable, you'll use that variable <em>instead</em> of <kbd>$this</kbd>:</p>
<code>
-$CI =& get_instance();<br /><br />
+$CI =&amp; get_instance();<br />
+<br />
$CI->load->helper('url');<br />
$CI->load->library('session');<br />
$CI->config->item('base_url');<br />
@@ -193,8 +194,9 @@ etc.
<p class="important"><strong>Note:</strong> You'll notice that the above get_instance() function is being passed by reference:
<br /><br />
-<var>$CI =& get_instance();</var>
-<br /><br />
+<var>$CI =&amp; get_instance();</var>
+<br />
+<br />
<kbd>This is very important.</kbd> Assigning by reference allows you to use the original CodeIgniter object rather than creating a copy of it.
<br /><br />
<kbd>Also, please note:</kbd> If you are running PHP 4 it's usually best to avoid calling <dfn>get_instance()</dfn>
diff --git a/user_guide/general/hooks.html b/user_guide/general/hooks.html
index e24c48ada..14e28d47f 100644
--- a/user_guide/general/hooks.html
+++ b/user_guide/general/hooks.html
@@ -127,7 +127,7 @@ $hook['pre_controller']<kbd>[]</kbd> = array(<br />
<h2>Hook Points</h2>
-The following is a list of available hook points.</p>
+<p>The following is a list of available hook points.</p>
<ul>
diff --git a/user_guide/general/profiling.html b/user_guide/general/profiling.html
index 87a01d62c..c506874ab 100644
--- a/user_guide/general/profiling.html
+++ b/user_guide/general/profiling.html
@@ -79,19 +79,9 @@ This information can be useful during development in order to help with debuggin
<h2>Setting Benchmark Points</h2>
-<p>In order for the Profiler to compile and display your benchmark data you must name your mark points using specific syntax.
-
-Please read the information on setting Benchmark points in <a href="../libraries/benchmark.html">Benchmark Class</a> page.</p>
-
-
-
-</code>
-
-
-
-
-
+<p>In order for the Profiler to compile and display your benchmark data you must name your mark points using specific syntax.</p>
+<p>Please read the information on setting Benchmark points in <a href="../libraries/benchmark.html">Benchmark Class</a> page.</p>
diff --git a/user_guide/general/security.html b/user_guide/general/security.html
index 5fa6cf3d0..271fea8b6 100644
--- a/user_guide/general/security.html
+++ b/user_guide/general/security.html
@@ -99,13 +99,12 @@ retrieving data from your database.</p>
XML-RPC data, or even data from the SERVER array, you are encouraged to practice this three step approach:</p>
<ol>
-
<li>Filter the data as if it were tainted.</li>
<li>Validate the data to ensure it conforms to the correct type, length, size, etc. (sometimes this step can replace step one)</li>
<li>Escape the data before submitting it into your database.</li>
</ol>
-CodeIgniter provides the following functions to assist in this process:</p>
+<p>CodeIgniter provides the following functions to assist in this process:</p>
<ul>
diff --git a/user_guide/general/urls.html b/user_guide/general/urls.html
index f83930457..823610f7e 100644
--- a/user_guide/general/urls.html
+++ b/user_guide/general/urls.html
@@ -74,7 +74,7 @@ approach to URLs that is synonymous with dynamic systems, CodeIgniter uses a <st
<ol>
<li>The first segment represents the controller <strong>class</strong> that should be invoked.</li>
<li>The second segment represents the class <strong>function</strong>, or method, that should be called.</li>
-<li>The third, and any additional segments, represent the ID and any variables that will be passed to the controller.</p>
+<li>The third, and any additional segments, represent the ID and any variables that will be passed to the controller.</li>
</ol>
<p>The <a href="../libraries/uri.html">URI Class</a> and the <a href="../helpers/url_helper.html">URL Helper</a>
@@ -116,7 +116,7 @@ by CodeIgniter. For example, if a URL is this:</p>
<p>In some cases you might prefer to use query strings URLs:</p>
-<code>index.php?c=products&m=view&id=345</code>
+<code>index.php?c=products&amp;m=view&amp;id=345</code>
<p>CodeIgniter optionally supports this capability, which can be enabled in your <dfn>application/config.php</dfn> file. If you
open your config file you'll see these items:</p>
@@ -128,7 +128,7 @@ $config['function_trigger'] = 'm';</code>
<p>If you change "enable_query_strings" to TRUE this feature will become active. Your controllers and functions will then
be accessible using the "trigger" words you've set to invoke your controllers and methods:</p>
-<code>index.php?c=controller&m=method</code>
+<code>index.php?c=controller&amp;m=method</code>
<p class="important"><strong>Please note:</strong> If you are using query strings you will have to build your own URLs, rather than utilizing
the URL helpers (and other helpers that generate URLs, like some of the form helpers) as these are designed to work with