summaryrefslogtreecommitdiffstats
path: root/user_guide
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide')
-rw-r--r--user_guide/changelog.html19
-rw-r--r--user_guide/database/utilities.html2
-rw-r--r--user_guide/general/alternative_php.html2
-rw-r--r--user_guide/general/views.html2
-rw-r--r--user_guide/installation/downloads.html6
-rw-r--r--user_guide/libraries/cart.html2
-rw-r--r--user_guide/libraries/file_uploading.html2
-rw-r--r--user_guide/libraries/form_validation.html310
-rw-r--r--user_guide/toc.html20
9 files changed, 211 insertions, 154 deletions
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index 92513e6d6..d58d43552 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -59,6 +59,25 @@ Change Log
<p>The <img src="images/reactor-bullet.png" width="16" height="16" alt="Reactor Marker" /> indicates items that were contributed to CodeIgniter via CodeIgniter Reactor.</p>
+<h2>Version 2.0.1</h2>
+<p>Release Date: n/a<br />
+Hg Tag: n/a</p>
+
+<ul>
+ <li>Libraries
+ <ul>
+ <li class="reactor">Added <kbd>decimal</kbd>, <kbd>less_than</kbd> and <kbd>greater_than</kbd> rules to the <a href="libraries/parser.html">Form validation Class</a>.</li>
+ </ul>
+ </li>
+</ul>
+
+<h3>Bug fixes for 2.0.1</h3>
+<ul>
+ <li class="reactor">CLI requests can now be run from any folder, not just when CD'ed next to index.php.</li>
+ <li class="reactor">Fixed issue #41: Added audio/mp3 mime type to mp3.</li>
+ <li class="reactor">Fixed a bug (#329) where the file caching driver referenced the incorrect cache directory.</li>
+</ul>
+
<h2>Version 2.0.0</h2>
<p>Release Date: January 28, 2011<br />
Hg Tag: v2.0.0</p>
diff --git a/user_guide/database/utilities.html b/user_guide/database/utilities.html
index ac3841641..4a8b6739e 100644
--- a/user_guide/database/utilities.html
+++ b/user_guide/database/utilities.html
@@ -96,7 +96,7 @@ already be running, since the utilities class relies on it.</p>
<code>
$dbs = $this->dbutil->list_databases();<br />
<br />
-foreach($dbs as $db)<br />
+foreach ($dbs as $db)<br />
{<br />
&nbsp;&nbsp;&nbsp; echo $db;<br />
}</code>
diff --git a/user_guide/general/alternative_php.html b/user_guide/general/alternative_php.html
index 652cdad29..c843f2f6e 100644
--- a/user_guide/general/alternative_php.html
+++ b/user_guide/general/alternative_php.html
@@ -94,7 +94,7 @@ written in a simplified format as well. Here is an example using foreach:</p>
<code>
&lt;ul><br />
<br />
-<var>&lt;?php foreach($todo as $item): ?></var><br />
+<var>&lt;?php foreach ($todo as $item): ?></var><br />
<br />
&lt;li><var>&lt;?=$item?></var>&lt;/li><br />
<br />
diff --git a/user_guide/general/views.html b/user_guide/general/views.html
index fd5bde6af..746f7b846 100644
--- a/user_guide/general/views.html
+++ b/user_guide/general/views.html
@@ -233,7 +233,7 @@ class Blog extends CI_Controller {
&lt;h3>My Todo List&lt;/h3>
&lt;ul>
-&lt;?php foreach($todo_list as $item):?>
+&lt;?php foreach ($todo_list as $item):?>
&lt;li>&lt;?php echo $item;?>&lt;/li>
diff --git a/user_guide/installation/downloads.html b/user_guide/installation/downloads.html
index d580fde7b..ad653307a 100644
--- a/user_guide/installation/downloads.html
+++ b/user_guide/installation/downloads.html
@@ -58,7 +58,9 @@ Downloading CodeIgniter
<h1>Downloading CodeIgniter</h1>
<ul>
-<li><a href="http://codeigniter.com/download.php">CodeIgniter V 1.7.2 (Current version)</a></li>
+<li><a href="http://codeigniter.com/downloads/">CodeIgniter V 2.0.0 (Current version)</a></li>
+<li><a href="http://codeigniter.com/download_files/CodeIgniter_1.7.3.zip">CodeIgniter V 1.7.3</a></li>
+<li><a href="http://codeigniter.com/download_files/CodeIgniter_1.7.2.zip">CodeIgniter V 1.7.2</a></li>
<li><a href="http://codeigniter.com/download_files/CodeIgniter_1.7.1.zip">CodeIgniter V 1.7.1</a></li>
<li><a href="http://codeigniter.com/download_files/CodeIgniter_1.7.0.zip">CodeIgniter V 1.7.0</a></li>
<li><a href="http://codeigniter.com/download_files/CodeIgniter_1.6.3.zip">CodeIgniter V 1.6.3</a></li>
@@ -85,7 +87,7 @@ Downloading CodeIgniter
<h1 id="hg">Mercurial Server</h1>
<p><a href="http://mercurial.selenic.com">Mercurial</a> is a distributed version control system.</p>
- <p>Public Hg access is available at <a href="http://bitbucket.org/ellislab/codeigniter/">BitBucket</a>.
+ <p>Public Hg access is available at <a href="http://bitbucket.org/ellislab/codeigniter-reactor/">BitBucket</a>.
Please note that while every effort is made to keep this code base functional, we cannot guarantee the functionality of code taken
from the tip.</p>
diff --git a/user_guide/libraries/cart.html b/user_guide/libraries/cart.html
index bc0721bb4..fe87a23f2 100644
--- a/user_guide/libraries/cart.html
+++ b/user_guide/libraries/cart.html
@@ -178,7 +178,7 @@ $this->cart->insert($data);
&lt;?php $i = 1; ?>
-&lt;?php foreach($this->cart->contents() as $items): ?>
+&lt;?php foreach ($this->cart->contents() as $items): ?>
&lt;?php echo form_hidden($i.'[rowid]', $items['rowid']); ?>
diff --git a/user_guide/libraries/file_uploading.html b/user_guide/libraries/file_uploading.html
index c5eab4695..5c3162819 100644
--- a/user_guide/libraries/file_uploading.html
+++ b/user_guide/libraries/file_uploading.html
@@ -125,7 +125,7 @@ In it, place this code and save it to your <samp>applications/views/</samp> fold
&lt;h3>Your file was successfully uploaded!&lt;/h3>
&lt;ul>
-&lt;?php foreach($upload_data as $item => $value):?>
+&lt;?php foreach ($upload_data as $item => $value):?>
&lt;li>&lt;?php echo $item;?>: &lt;?php echo $value;?>&lt;/li>
&lt;?php endforeach; ?>
&lt;/ul>
diff --git a/user_guide/libraries/form_validation.html b/user_guide/libraries/form_validation.html
index 935dca61f..d6120054b 100644
--- a/user_guide/libraries/form_validation.html
+++ b/user_guide/libraries/form_validation.html
@@ -924,118 +924,146 @@ POST array:</p>
<p>The following is a list of all the native rules that are available to use:</p>
-
<table cellpadding="0" cellspacing="1" border="0" style="width:100%" class="tableborder">
-<tr>
-<th>Rule</th>
-<th>Parameter</th>
-<th>Description</th>
-<th>Example</th>
-</tr><tr>
-
-<td class="td"><strong>required</strong></td>
-<td class="td">No</td>
-<td class="td">Returns FALSE if the form element is empty.</td>
-<td class="td">&nbsp;</td>
-</tr><tr>
-
-<td class="td"><strong>matches</strong></td>
-<td class="td">Yes</td>
-<td class="td">Returns FALSE if the form element does not match the one in the parameter.</td>
-<td class="td">matches[form_item]</td>
-</tr><tr>
-
-<td class="td"><strong>min_length</strong></td>
-<td class="td">Yes</td>
-<td class="td">Returns FALSE if the form element is shorter then the parameter value.</td>
-<td class="td">min_length[6]</td>
-</tr><tr>
-
-<td class="td"><strong>max_length</strong></td>
-<td class="td">Yes</td>
-<td class="td">Returns FALSE if the form element is longer then the parameter value.</td>
-<td class="td">max_length[12]</td>
-</tr><tr>
-
-<td class="td"><strong>exact_length</strong></td>
-<td class="td">Yes</td>
-<td class="td">Returns FALSE if the form element is not exactly the parameter value.</td>
-<td class="td">exact_length[8]</td>
-</tr><tr>
-
-<td class="td"><strong>alpha</strong></td>
-<td class="td">No</td>
-<td class="td">Returns FALSE if the form element contains anything other than alphabetical characters.</td>
-<td class="td">&nbsp;</td>
-</tr><tr>
-
-<td class="td"><strong>alpha_numeric</strong></td>
-<td class="td">No</td>
-<td class="td">Returns FALSE if the form element contains anything other than alpha-numeric characters.</td>
-<td class="td">&nbsp;</td>
-</tr><tr>
-
-<td class="td"><strong>alpha_dash</strong></td>
-<td class="td">No</td>
-<td class="td">Returns FALSE if the form element contains anything other than alpha-numeric characters, underscores or dashes.</td>
-<td class="td">&nbsp;</td>
-</tr>
-
-<tr>
-<td class="td"><strong>numeric</strong></td>
-<td class="td">No</td>
-<td class="td">Returns FALSE if the form element contains anything other than numeric characters.</td>
-<td class="td">&nbsp;</td>
-</tr>
-
-<tr>
-<td class="td"><strong>integer</strong></td>
-<td class="td">No</td>
-<td class="td">Returns FALSE if the form element contains anything other than an integer.</td>
-<td class="td">&nbsp;</td>
-</tr>
-
-<tr>
-<td class="td"><strong>is_natural</strong></td>
-<td class="td">No</td>
-<td class="td">Returns FALSE if the form element contains anything other than a natural number: 0, 1, 2, 3, etc.</td>
-<td class="td">&nbsp;</td>
-</tr>
-
-<tr>
-<td class="td"><strong>is_natural_no_zero</strong></td>
-<td class="td">No</td>
-<td class="td">Returns FALSE if the form element contains anything other than a natural number, but not zero: 1, 2, 3, etc.</td>
-<td class="td">&nbsp;</td>
-</tr>
-
-<tr>
-<td class="td"><strong>valid_email</strong></td>
-<td class="td">No</td>
-<td class="td">Returns FALSE if the form element does not contain a valid email address.</td>
-<td class="td">&nbsp;</td>
-</tr>
-
-<tr>
-<td class="td"><strong>valid_emails</strong></td>
-<td class="td">No</td>
-<td class="td">Returns FALSE if any value provided in a comma separated list is not a valid email.</td>
-<td class="td">&nbsp;</td>
-</tr>
-
-<tr>
-<td class="td"><strong>valid_ip</strong></td>
-<td class="td">No</td>
-<td class="td">Returns FALSE if the supplied IP is not valid.</td>
-<td class="td">&nbsp;</td>
-</tr>
-
-<tr>
-<td class="td"><strong>valid_base64</strong></td>
-<td class="td">No</td>
-<td class="td">Returns FALSE if the supplied string contains anything other than valid Base64 characters.</td>
-<td class="td">&nbsp;</td>
-</tr>
+ <tr>
+ <th>Rule</th>
+ <th>Parameter</th>
+ <th>Description</th>
+ <th>Example</th>
+ </tr>
+
+ <tr>
+ <td class="td"><strong>required</strong></td>
+ <td class="td">No</td>
+ <td class="td">Returns FALSE if the form element is empty.</td>
+ <td class="td">&nbsp;</td>
+ </tr>
+
+ <tr>
+ <td class="td"><strong>matches</strong></td>
+ <td class="td">Yes</td>
+ <td class="td">Returns FALSE if the form element does not match the one in the parameter.</td>
+ <td class="td">matches[form_item]</td>
+ </tr>
+
+ <tr>
+ <td class="td"><strong>min_length</strong></td>
+ <td class="td">Yes</td>
+ <td class="td">Returns FALSE if the form element is shorter then the parameter value.</td>
+ <td class="td">min_length[6]</td>
+ </tr>
+
+ <tr>
+ <td class="td"><strong>max_length</strong></td>
+ <td class="td">Yes</td>
+ <td class="td">Returns FALSE if the form element is longer then the parameter value.</td>
+ <td class="td">max_length[12]</td>
+ </tr>
+
+ <tr>
+ <td class="td"><strong>exact_length</strong></td>
+ <td class="td">Yes</td>
+ <td class="td">Returns FALSE if the form element is not exactly the parameter value.</td>
+ <td class="td">exact_length[8]</td>
+ </tr>
+
+ <tr>
+ <td class="td"><strong>greater_than</strong></td>
+ <td class="td">Yes</td>
+ <td class="td">Returns FALSE if the form element is less than the parameter value or not numeric.</td>
+ <td class="td">greater_than[8]</td>
+ </tr>
+
+ <tr>
+ <td class="td"><strong>less_than</strong></td>
+ <td class="td">Yes</td>
+ <td class="td">Returns FALSE if the form element is greater than the parameter value or not numeric.</td>
+ <td class="td">less_than[8]</td>
+ </tr>
+
+ <tr>
+ <td class="td"><strong>alpha</strong></td>
+ <td class="td">No</td>
+ <td class="td">Returns FALSE if the form element contains anything other than alphabetical characters.</td>
+ <td class="td">&nbsp;</td>
+ </tr>
+
+ <tr>
+ <td class="td"><strong>alpha_numeric</strong></td>
+ <td class="td">No</td>
+ <td class="td">Returns FALSE if the form element contains anything other than alpha-numeric characters.</td>
+ <td class="td">&nbsp;</td>
+ </tr>
+
+ <tr>
+ <td class="td"><strong>alpha_dash</strong></td>
+ <td class="td">No</td>
+ <td class="td">Returns FALSE if the form element contains anything other than alpha-numeric characters, underscores or dashes.</td>
+ <td class="td">&nbsp;</td>
+ </tr>
+
+ <tr>
+ <td class="td"><strong>numeric</strong></td>
+ <td class="td">No</td>
+ <td class="td">Returns FALSE if the form element contains anything other than numeric characters.</td>
+ <td class="td">&nbsp;</td>
+ </tr>
+
+ <tr>
+ <td class="td"><strong>integer</strong></td>
+ <td class="td">No</td>
+ <td class="td">Returns FALSE if the form element contains anything other than an integer.</td>
+ <td class="td">&nbsp;</td>
+ </tr>
+
+ <tr>
+ <td class="td"><strong>decimal</strong></td>
+ <td class="td">Yes</td>
+ <td class="td">Returns FALSE if the form element is not exactly the parameter value.</td>
+ <td class="td">&nbsp;</td>
+ </tr>
+
+ <tr>
+ <td class="td"><strong>is_natural</strong></td>
+ <td class="td">No</td>
+ <td class="td">Returns FALSE if the form element contains anything other than a natural number: 0, 1, 2, 3, etc.</td>
+ <td class="td">&nbsp;</td>
+ </tr>
+
+ <tr>
+ <td class="td"><strong>is_natural_no_zero</strong></td>
+ <td class="td">No</td>
+ <td class="td">Returns FALSE if the form element contains anything other than a natural number, but not zero: 1, 2, 3, etc.</td>
+ <td class="td">&nbsp;</td>
+ </tr>
+
+ <tr>
+ <td class="td"><strong>valid_email</strong></td>
+ <td class="td">No</td>
+ <td class="td">Returns FALSE if the form element does not contain a valid email address.</td>
+ <td class="td">&nbsp;</td>
+ </tr>
+
+ <tr>
+ <td class="td"><strong>valid_emails</strong></td>
+ <td class="td">No</td>
+ <td class="td">Returns FALSE if any value provided in a comma separated list is not a valid email.</td>
+ <td class="td">&nbsp;</td>
+ </tr>
+
+ <tr>
+ <td class="td"><strong>valid_ip</strong></td>
+ <td class="td">No</td>
+ <td class="td">Returns FALSE if the supplied IP is not valid.</td>
+ <td class="td">&nbsp;</td>
+ </tr>
+
+ <tr>
+ <td class="td"><strong>valid_base64</strong></td>
+ <td class="td">No</td>
+ <td class="td">Returns FALSE if the supplied string contains anything other than valid Base64 characters.</td>
+ <td class="td">&nbsp;</td>
+ </tr>
</table>
@@ -1058,36 +1086,36 @@ POST array:</p>
<table cellpadding="0" cellspacing="1" border="0" style="width:100%" class="tableborder">
-<tr>
-<th>Name</th>
-<th>Parameter</th>
-<th>Description</th>
-</tr><tr>
-
-<td class="td"><strong>xss_clean</strong></td>
-<td class="td">No</td>
-<td class="td">Runs the data through the XSS filtering function, described in the <a href="input.html">Input Class</a> page.</td>
-</tr><tr>
-
-<td class="td"><strong>prep_for_form</strong></td>
-<td class="td">No</td>
-<td class="td">Converts special characters so that HTML data can be shown in a form field without breaking it.</td>
-</tr><tr>
-
-<td class="td"><strong>prep_url</strong></td>
-<td class="td">No</td>
-<td class="td">Adds "http://" to URLs if missing.</td>
-</tr><tr>
-
-<td class="td"><strong>strip_image_tags</strong></td>
-<td class="td">No</td>
-<td class="td">Strips the HTML from image tags leaving the raw URL.</td>
-</tr><tr>
-
-<td class="td"><strong>encode_php_tags</strong></td>
-<td class="td">No</td>
-<td class="td">Converts PHP tags to entities.</td>
-</tr>
+ <tr>
+ <th>Name</th>
+ <th>Parameter</th>
+ <th>Description</th>
+ </tr><tr>
+
+ <td class="td"><strong>xss_clean</strong></td>
+ <td class="td">No</td>
+ <td class="td">Runs the data through the XSS filtering function, described in the <a href="input.html">Input Class</a> page.</td>
+ </tr><tr>
+
+ <td class="td"><strong>prep_for_form</strong></td>
+ <td class="td">No</td>
+ <td class="td">Converts special characters so that HTML data can be shown in a form field without breaking it.</td>
+ </tr><tr>
+
+ <td class="td"><strong>prep_url</strong></td>
+ <td class="td">No</td>
+ <td class="td">Adds "http://" to URLs if missing.</td>
+ </tr><tr>
+
+ <td class="td"><strong>strip_image_tags</strong></td>
+ <td class="td">No</td>
+ <td class="td">Strips the HTML from image tags leaving the raw URL.</td>
+ </tr><tr>
+
+ <td class="td"><strong>encode_php_tags</strong></td>
+ <td class="td">No</td>
+ <td class="td">Converts PHP tags to entities.</td>
+ </tr>
</table>
diff --git a/user_guide/toc.html b/user_guide/toc.html
index 5eb9c2acc..9f51b1e91 100644
--- a/user_guide/toc.html
+++ b/user_guide/toc.html
@@ -118,6 +118,13 @@ Table of Contents
<li><a href="./doc_style/index.html">Writing Documentation</a></li>
</ul>
+<h3>Additional Resources</h3>
+
+<ul>
+<li><a href="http://codeigniter.com/forums/">Community Forums</a></li>
+<li><a href="http://codeigniter.com/wiki/">Community Wiki</a></li>
+</ul>
+
</td>
<td valign="top" width="25%">
@@ -127,7 +134,6 @@ Table of Contents
<li><a href="./libraries/calendar.html">Calendar Class</a></li>
<li><a href="./libraries/cart.html">Cart Class</a></li>
<li><a href="./libraries/config.html">Config Class</a></li>
-<li><a href="./database/index.html">Database Class</a></li>
<li><a href="./libraries/email.html">Email Class</a></li>
<li><a href="./libraries/encryption.html">Encryption Class</a></li>
<li><a href="./libraries/file_uploading.html">File Uploading Class</a></li>
@@ -157,6 +163,13 @@ Table of Contents
</td>
<td valign="top" width="25%">
+<h3>Driver Reference</h3>
+<ul>
+<li><a href="./libraries/caching.html">Caching Class</a></li>
+<li><a href="./database/index.html">Database Class</a></li>
+<li><a href="./libraries/javascript.html">Javascript Class</a></li>
+</ul>
+
<h3>Helper Reference</h3>
<ul>
<li><a href="./helpers/array_helper.html">Array Helper</a></li>
@@ -182,12 +195,7 @@ Table of Contents
<li><a href="./helpers/xml_helper.html">XML Helper</a></li>
</ul>
-<h3>Additional Resources</h3>
-<ul>
-<li><a href="http://codeigniter.com/forums/">Community Forums</a></li>
-<li><a href="http://codeigniter.com/wiki/">Community Wiki</a></li>
-</ul>
</td>