This site is built library CakePHP "Inflector" test site.

※ This site is using the CakePHP 2.7.5.

The result of running Inflector

Inflector::pluralize ANSWERs
Inflector::singularize ANSWER
Inflector::camelize ANSWER
Inflector::underscore a_n_s_w_e_r
Inflector::humanize ANSWER
Inflector::tableize a_n_s_w_e_rs
Inflector::classify ANSWER
Inflector::variable aNSWER
Inflector::slug ANSWER

CakePHP Conventions

model
Model Name ANSWER UpperCamelCase,single
Inflector::singularize(Inflector::classify($word));
Model's FileName ANSWER.php UpperCamelCase,single
Inflector::singularize(Inflector::classify($word)).'.php';
Table Name a_n_s_w_e_rs underscored,lower,plural
Inflector::tableize($word);
controller
Controller Name ANSWERs UpperCamelCase,plural
Inflector::pluralize(Inflector::classify($word));
Controller's ClassName ANSWERsController UpperCamelCase,plural,with 'Controller'
Inflector::pluralize(Inflector::classify($word)).'Controller';
Controller's FileName ANSWERsController.php UpperCamelCase,plural,with 'Controller'
Inflector::pluralize(Inflector::classify($word)).'Controller.php';
for uses ANSWER Model Name
Inflector::singularize(Inflector::classify($word));
view
View Folder ANSWERs Controller Name
Inflector::pluralize(Inflector::classify($word));
View's FileName a_n_s_w_e_r.php Action Name
Inflector::underscore($word).'.php';

"Inflector" is?

The Inflector class takes a string and can manipulate it to handle word variations such as pluralizations or camelizing and is normally accessed statically. Example: Inflector::pluralize('example'); returns "examples". (From the official site

References

Similar sites can