From f5a519822db2201b98f822ad4f8659bad2ce9bcd Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Wed, 11 Jul 2007 19:35:09 +0000 Subject: inflector helper changes to account for words ending in "s" --- user_guide/changelog.html | 3 ++- user_guide/helpers/inflector_helper.html | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'user_guide') diff --git a/user_guide/changelog.html b/user_guide/changelog.html index c8ad1a9b0..5435864d4 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -69,6 +69,7 @@ Change Log
  • Added array to string into the profiler
  • Added some additional mime types in application/config/mimes.php
  • Added filename_security() method to Input library
  • +
  • Added some additional arguements to the Inflection helper singular() to compensate for words ending in "s". Also added a force parameter to pluralize()
  • Fixed MSSQL insert_id().
  • Fixed a logic error in the DB trans_status() function. It was incorrectly returning TRUE on failure and FALSE on success.
  • Fixed a bug that was allowing multiple load attempts on extended classes.
  • @@ -80,7 +81,7 @@ Change Log
  • Fixed a bug in router that was ignoring the scaffolding route for optimization
  • Fixed an IP validation bug.
  • Fixed various doc typos.
  • -
  • Docs now validate to XHTML 1 transitional
  • +
  • Docs now validate to XHTML 1 transitional
  • Fixed a bug where one could unset certain PHP superglobals by setting them via GET or POST data
  • Updated the XSS Filtering to take into account the IE expression() ability and improved certain deletions to prevent possible exploits
  • Modified the Router so that when Query Strings are Enabled, the controller trigger and function trigger values are sanitized for filename include security.
  • diff --git a/user_guide/helpers/inflector_helper.html b/user_guide/helpers/inflector_helper.html index 2a4ee559f..91de2e20f 100644 --- a/user_guide/helpers/inflector_helper.html +++ b/user_guide/helpers/inflector_helper.html @@ -94,8 +94,11 @@ echo plural($word); // Returns "dogs" -

    camelize()

    +

    To force a word to end with "es" use a second "true" argument.

    + $word = "pass";
    +echo plural($word); // Returns "passes"
    +

    camelize()

    Changes a string of words separated by spaces or underscores to camel case. Example:

    -- cgit v1.2.3-24-g4f1b