简体   繁体   中英

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM