All Lower Case For Controller Naming?


I have a strange problem with the naming of controller files. I’m migrating my existing app to Yii2, I found out that if the controller name is like AccountItemController.php, I will get 404 error when trying to access it. But if I rename it to AccountitemController.php, everything will work as expected.

Is this naming convention intended in Yii2? Because I think Yii1 don’t have this issue.


Chris Sim

Ohh ok thanks. Never notice the new "dash" route thing