App Directory >> CakePHP Inflector by Eric David
CakePHP Inflector
This is the Cake inflector class updated to PHP5 syntax for VorkTypical usage:
$inflector = get::component('inflector');
echo $inflector->pluralize('person');
//prints: people
echo $inflector->singularize('people');
//prints: person
echo $inflector->camelize('cakephp_inflector_class');
//prints: cakephpInflectorClass
echo $inflector->underscore('cakephpInflectorClass');
//prints: cakephp_inflector_class
App Files
- mvc
- components