This site is built library CakePHP "Inflector" test site.
※ This site is using the CakePHP 2.7.5.
Enter the text you want to convert, "Send" button please.
The result of running Inflector
Inflector::pluralize | entities |
---|---|
Inflector::singularize | entity |
Inflector::camelize | Entity |
Inflector::underscore | entity |
Inflector::humanize | Entity |
Inflector::tableize | entities |
Inflector::classify | Entity |
Inflector::variable | entity |
Inflector::slug | entity |
CakePHP Conventions
model | ||
---|---|---|
Model Name | Entity | UpperCamelCase,single Inflector::singularize(Inflector::classify($word)); |
Model's FileName | Entity.php | UpperCamelCase,single Inflector::singularize(Inflector::classify($word)).'.php'; |
Table Name | entities | underscored,lower,plural Inflector::tableize($word); |
controller | ||
---|---|---|
Controller Name | Entities | UpperCamelCase,plural Inflector::pluralize(Inflector::classify($word)); |
Controller's ClassName | EntitiesController | UpperCamelCase,plural,with 'Controller' Inflector::pluralize(Inflector::classify($word)).'Controller'; |
Controller's FileName | EntitiesController.php | UpperCamelCase,plural,with 'Controller' Inflector::pluralize(Inflector::classify($word)).'Controller.php'; |
for uses | Entity | Model Name Inflector::singularize(Inflector::classify($word)); |
view | ||
---|---|---|
View Folder | Entities | Controller Name Inflector::pluralize(Inflector::classify($word)); |
View's FileName | entity.php | Action Name Inflector::underscore($word).'.php'; |