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