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