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