summaryrefslogtreecommitdiffstats
path: root/user_guide
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
parent2934e286158074d6131d8a9ce0f01ea1c23e2678 (diff)
validation error fixes
Diffstat (limited to 'user_guide')
-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
-rw-r--r--user_guide/helpers/date_helper.html2
-rw-r--r--user_guide/helpers/url_helper.html2
-rw-r--r--user_guide/libraries/pagination.html12
-rw-r--r--user_guide/libraries/uri.html2
-rw-r--r--user_guide/overview/appflow.html2
10 files changed, 23 insertions, 32 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
diff --git a/user_guide/helpers/date_helper.html b/user_guide/helpers/date_helper.html
index 8a9eb1bfd..5389239bb 100644
--- a/user_guide/helpers/date_helper.html
+++ b/user_guide/helpers/date_helper.html
@@ -225,7 +225,7 @@ echo timespan($post_date, $now);</code>
<h2>timezone_menu()</h2>
<p>Generates a pull-down menu of timezones, like this one:</p>
-<form>
+<form action="#">
<select name="timezones">
<option value='UM12'>(UTC - 12:00) Enitwetok, Kwajalien</option>
<option value='UM11'>(UTC - 11:00) Nome, Midway Island, Samoa</option>
diff --git a/user_guide/helpers/url_helper.html b/user_guide/helpers/url_helper.html
index a96367e8f..3efb7ed5f 100644
--- a/user_guide/helpers/url_helper.html
+++ b/user_guide/helpers/url_helper.html
@@ -190,7 +190,7 @@ if the parameter is not specified</p>
<p>Converts only Email addresses:</p>
<code>$string = auto_link($string, 'email');</code>
-</p>The third parameter determines whether links are shown in a new window. The value can be TRUE or FALSE (boolean):</p>
+<p>The third parameter determines whether links are shown in a new window. The value can be TRUE or FALSE (boolean):</p>
<code>$string = auto_link($string, 'both', TRUE);</code>
diff --git a/user_guide/libraries/pagination.html b/user_guide/libraries/pagination.html
index e55f65df0..072cdd7f9 100644
--- a/user_guide/libraries/pagination.html
+++ b/user_guide/libraries/pagination.html
@@ -139,7 +139,7 @@ will place two digits on either side, as in the example links at the very top of
<h4>$config['first_tag_open'] = '&lt;div>';</h4>
<p>The opening tag for the "first" link.</p>
-<h4>$config['first_tag_close'] = '&lt/div>';</h4>
+<h4>$config['first_tag_close'] = '&lt;/div>';</h4>
<p>The closing tag for the "first" link.</p>
<h2>Customizing the Last Link</h2>
@@ -150,7 +150,7 @@ will place two digits on either side, as in the example links at the very top of
<h4>$config['last_tag_open'] = '&lt;div>';</h4>
<p>The opening tag for the "last" link.</p>
-<h4>$config['last_tag_close'] = '&lt/div>';</h4>
+<h4>$config['last_tag_close'] = '&lt;/div>';</h4>
<p>The closing tag for the "last" link.</p>
<h2>Customizing the "Next" Link</h2>
@@ -161,7 +161,7 @@ will place two digits on either side, as in the example links at the very top of
<h4>$config['next_tag_open'] = '&lt;div>';</h4>
<p>The opening tag for the "next" link.</p>
-<h4>$config['next_tag_close'] = '&lt/div>';</h4>
+<h4>$config['next_tag_close'] = '&lt;/div>';</h4>
<p>The closing tag for the "next" link.</p>
<h2>Customizing the "Previous" Link</h2>
@@ -172,7 +172,7 @@ will place two digits on either side, as in the example links at the very top of
<h4>$config['prev_tag_open'] = '&lt;div>';</h4>
<p>The opening tag for the "previous" link.</p>
-<h4>$config['prev_tag_close'] = '&lt/div>';</h4>
+<h4>$config['prev_tag_close'] = '&lt;/div>';</h4>
<p>The closing tag for the "previous" link.</p>
<h2>Customizing the "Current Page" Link</h2>
@@ -180,7 +180,7 @@ will place two digits on either side, as in the example links at the very top of
<h4>$config['cur_tag_open'] = '&lt;b>';</h4>
<p>The opening tag for the "current" link.</p>
-<h4>$config['cur_tag_close'] = '&lt/b>';</h4>
+<h4>$config['cur_tag_close'] = '&lt;/b>';</h4>
<p>The closing tag for the "current" link.</p>
@@ -189,7 +189,7 @@ will place two digits on either side, as in the example links at the very top of
<h4>$config['num_tag_open'] = '&lt;div>';</h4>
<p>The opening tag for the "digit" link.</p>
-<h4>$config['num_tag_close'] = '&lt/div>';</h4>
+<h4>$config['num_tag_close'] = '&lt;/div>';</h4>
<p>The closing tag for the "digit" link.</p>
diff --git a/user_guide/libraries/uri.html b/user_guide/libraries/uri.html
index 27e6f0d4f..d53ebe355 100644
--- a/user_guide/libraries/uri.html
+++ b/user_guide/libraries/uri.html
@@ -229,7 +229,7 @@ foreach ($segs as $segment)<br />
<h2>$this->uri->rsegment_array(<var>n</var>)</h2>
<p>This function is identical to the previous one, except that it returns the array of segments in your
-re-routed URI in the event you are using CodeIgniter's <a href="../general/routing.html">URI Routing</a> feature.
+re-routed URI in the event you are using CodeIgniter's <a href="../general/routing.html">URI Routing</a> feature.</p>
diff --git a/user_guide/overview/appflow.html b/user_guide/overview/appflow.html
index d95d8c7cc..8e1d60630 100644
--- a/user_guide/overview/appflow.html
+++ b/user_guide/overview/appflow.html
@@ -60,7 +60,7 @@ Appflow
<p>The following graphic illustrates how data flows throughout the system:</p>
-<div><img src="../images/appflowchart.gif" width="697" height="205" border="0" /></div>
+<div><img src="../images/appflowchart.gif" width="697" height="205" border="0" alt="CodeIgniter application flow" /></div>
<ol>