diff options
Diffstat (limited to 'user_guide')
-rw-r--r-- | user_guide/changelog.html | 7 | ||||
-rw-r--r-- | user_guide/libraries/validation.html | 14 |
2 files changed, 14 insertions, 7 deletions
diff --git a/user_guide/changelog.html b/user_guide/changelog.html index 95be683d3..78861b44b 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -110,10 +110,11 @@ Change Log <ul>
<li>Added Flashdata variables, session_id regeneration and configurable session update times to the <a href="./libraries/sessions.html">Session class.</a></li>
<li>Added a language entry for valid_ip validation error.</li>
- <li>Moved the safe mode and auth checks for the Email library into the constructor. </li>
- <li>Modified prep_for_form() in the Validation class to accept arrays, adding support for POST array validation (via callbacks only)</li>
- <li>Changed the behaviour of custom callbacks so that they no longer trigger the "required" rule. </li>
+ <li>Modified prep_for_form() in the Validation class to accept arrays, adding support for POST array validation (via callbacks only)</li>
+ <li>Changed "numeric" to use is_numeric() and added an "integer" rule into the <a href="./libraries/validation.html">Validation</a> library.</li>
+ <li>Changed the behaviour of custom callbacks so that they no longer trigger the "required" rule. </li>
<li>Modified Upload class $_FILES error messages to be more precise.</li>
+ <li>Moved the safe mode and auth checks for the Email library into the constructor. </li>
<li>Modified variable names in _ci_load() method of Loader class to avoid conflicts with view variables.</li>
<li>Added a few additional mime type variations for CSV.</li>
</ul>
diff --git a/user_guide/libraries/validation.html b/user_guide/libraries/validation.html index c2b9b9647..f9cac856b 100644 --- a/user_guide/libraries/validation.html +++ b/user_guide/libraries/validation.html @@ -576,11 +576,18 @@ For example, your "username" error will be available at:<br /><dfn>$this->valida <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"> </td>
-</tr><tr>
+</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"> </td>
+</tr>
+<tr>
-<td class="td"><strong>numeric</strong></td>
+<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 numeric characters.</td>
+<td class="td">Returns FALSE if the form element contains anything other than an integer.</td>
<td class="td"> </td>
</tr><tr>
@@ -595,7 +602,6 @@ For example, your "username" error will be available at:<br /><dfn>$this->valida <td class="td">Returns FALSE if the supplied IP is not valid.</td>
<td class="td"> </td>
</tr>
-
</table>
<p><strong>Note:</strong> These rules can also be called as discreet functions. For example:</p>
|