Manual»Podstawowe zasady CakePHP.»CakePHP Conventions»Controller Conventions»URL Considerations for Controller Names
2.4.3.1 URL Considerations for Controller Names
As you've just seen, single word controllers map easily to a simple lower case URL path. For example, ApplesController (which would be defined in the file name 'apples_controller.php') is accessed from http://example.com/apples.
Multiple word controllers can be any 'inflected' form which equals the controller name so:
- /redApples
- /RedApples
- /Red_apples
- /red_apples
will all resolve to the index of the RedApples controller. However, the convention is that your urls are lowercase and underscored, therefore /red_apples/go_pick is the correct form to access the RedApplesController::go_pick action.
See comments for this section
