diff options
author | Derek Allard <derek.allard@ellislab.com> | 2007-07-11 21:35:09 +0200 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2007-07-11 21:35:09 +0200 |
commit | f5a519822db2201b98f822ad4f8659bad2ce9bcd (patch) | |
tree | 0f08cc25e63174b3b4bc8fe257e7e686d9605b23 /user_guide/helpers/inflector_helper.html | |
parent | c39a41f4615378b9b7b112a1b6cd37f358533493 (diff) |
inflector helper changes to account for words ending in "s"
Diffstat (limited to 'user_guide/helpers/inflector_helper.html')
-rw-r--r-- | user_guide/helpers/inflector_helper.html | 5 |
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 "es" use a second "true" argument. </p>
+<code> $word = "pass";<br />
+echo plural($word); // Returns "passes" </code>
+<h2>camelize()</h2>
<p>Changes a string of words separated by spaces or underscores to camel case. Example:</p>
<code>
|