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