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