summaryrefslogtreecommitdiffstats
path: root/user_guide/helpers
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2007-07-11 21:35:09 +0200
committerDerek Allard <derek.allard@ellislab.com>2007-07-11 21:35:09 +0200
commitf5a519822db2201b98f822ad4f8659bad2ce9bcd (patch)
tree0f08cc25e63174b3b4bc8fe257e7e686d9605b23 /user_guide/helpers
parentc39a41f4615378b9b7b112a1b6cd37f358533493 (diff)
inflector helper changes to account for words ending in "s"
Diffstat (limited to 'user_guide/helpers')
-rw-r--r--user_guide/helpers/inflector_helper.html5
1 files changed, 4 insertions, 1 deletions
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"
</code>
-<h2>camelize()</h2>
+<p>To force a word to end with &quot;es&quot; use a second &quot;true&quot; argument. </p>
+<code> $word = &quot;pass&quot;;<br />
+echo plural($word); // Returns &quot;passes&quot; </code>
+<h2>camelize()</h2>
<p>Changes a string of words separated by spaces or underscores to camel case. Example:</p>
<code>