Search code examples
phpyiiyii-components

Unable to resolve the request "site/myuserclassroom" in Yii 1.x


I am working on Yii 1.x website locally using a vagrant box, everything seems ok on this when I transfer the files to a staging server I get the following 404 error message:

Unable to resolve the request "site/myuserclassroom"

The filename in question is called 'MyuserClassroomController.php' with the class called 'MyuserClassroomController'

There doesn't seem to be any issues with case sensitive filenames that I can see, but I don't know why Yii isn't loading the page in the same manner as my Vagrant equivalent using the exact same codebase.

Any ideas?


Solution

  • If you have site/myuserclassroom url, you must define your controller like this: MyuserclassroomController. I think this will work.