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/helpers/inflector_helper.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'user_guide/helpers/inflector_helper.html') 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