Home > Article > Backend Development > Why is the error that the class does not exist reported here?
Looking at your URL path prompt, it should be the index method under the course controller under the admin module. Your screenshot is under the model. There should be a problem with the location you checked.
Update:
Looking at the screenshots, I still can’t find the problem. You should be able to find the problem from the error location in
. Due to program limitations, the error cannot be debugged. I downloaded the thinkphp5 program from the official website and ran it locally. I simply wrote two lines of code and the model file under common can be loaded normally. The screenshot is as follows:
][1]
Tried it