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

Camel Case Controller

I have a weird issue where my camel case controller "AuthEventsController" dispatches correctly on my dev environment (centos) but not my production env (amazon-linux). From what I've read it shouldnt dispatch without some modification to the dispatcher. But why is this working on centos but not amazon-linux? Is there something in the different nginx/php packages that might affect this?



16.1k
Accepted
answer
edited Sep '15

I think I discovered my problem. For AuthEventsController both /auth-events and /auth_events work correctly but /authevents only worked on my local centos vm not amazon-linux.

Although my site is served from the centos vm, Im using a vagrant shared folder thats mounting the osx host folder, case-insensitive. I assume this is why it let me do /authevents locally. Hope this helps someone else with a similar setup avoid the confusion.