Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Can I use "South-AmericaController" instead of "SouthAmericaController"?

is it possible in Phalcon to name controllers like:

South-AmericaController and the file like South-AmericaController.php

?



84.5k
Accepted
answer

That depends on how you define the controller item in the matched route:

Item Controller
southamerica SouthamericaController
south-america SouthAmericaController
south--america South-americaController