News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

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

Zend Developer Zone: Zend Framework Browser Plugins

The Northclick Blog: Announcing "dropr" - the message queue framework for PHP

NETTUTS.com: Build an RSS 2.0 Feed with CodeIgniter

AjaxRay.com: The first Kohana book : Kohana 3.0 Beginnerís Guide

Community News: Symfonians - Symfony-based Social Networking Application


Community Events





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


opinion introduction list version podcast configure release laravel unittest series symfony composer community conference voicesoftheelephpant language api threedevsandamaybe framework interview

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