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