News Feed
Jobs Feed
Sections




News Archive
Tim Koschuetzki's Blog:
CakePHP Pluralize Helper
November 05, 2007 @ 13:48:00

Tim Koschuetzki has another CakePHP tip to share on his blog today - a helper that lets you pluralize a word easily.

Here is a small helper file for the CakePHP framework that will help you turn a subject into the pluralized form depending on a parameter.

His example shows how to use the tool, pluralizing the word "article". The Helper uses CakePHP's Inflector class to base the transition on ("so that special cases like "baby/babies" are taken care of as well").

4 comments voice your opinion now!
cakephp framework helper pluralize plural inflector cakephp framework helper pluralize plural inflector


blog comments powered by Disqus

Similar Posts

Jim Plush\'s Blog: New AJAX/PHP framework - My-BIC is LIGHT and TASTY!

Community News: SolarPHP Framework Release 1.0.0alpha2

The Bakery: Mambo, Layout Switching, SimplePie and Caching Elements

Martin Jansen's Blog: eZ Components Book

Web and PHP Development: Laravel vs Codeigniter


Community Events











Don't see your event here?
Let us know!


zendframework2 conference series community language unittest podcast interview tool development code application release example functional testing opinion introduction framework phpunit

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework