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