We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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

?



98.9k
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