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 | officials |
---|---|
Inflector::singularize | official |
Inflector::camelize | Official |
Inflector::underscore | official |
Inflector::humanize | Official |
Inflector::tableize | officials |
Inflector::classify | Official |
Inflector::variable | official |
Inflector::slug | official |
CakePHP Conventions
model | ||
---|---|---|
Model Name | Official | UpperCamelCase,single Inflector::singularize(Inflector::classify($word)); |
Model's FileName | Official.php | UpperCamelCase,single Inflector::singularize(Inflector::classify($word)).'.php'; |
Table Name | officials | underscored,lower,plural Inflector::tableize($word); |
controller | ||
---|---|---|
Controller Name | Officials | UpperCamelCase,plural Inflector::pluralize(Inflector::classify($word)); |
Controller's ClassName | OfficialsController | UpperCamelCase,plural,with 'Controller' Inflector::pluralize(Inflector::classify($word)).'Controller'; |
Controller's FileName | OfficialsController.php | UpperCamelCase,plural,with 'Controller' Inflector::pluralize(Inflector::classify($word)).'Controller.php'; |
for uses | Official | Model Name Inflector::singularize(Inflector::classify($word)); |
view | ||
---|---|---|
View Folder | Officials | Controller Name Inflector::pluralize(Inflector::classify($word)); |
View's FileName | official.php | Action Name Inflector::underscore($word).'.php'; |