Home  >  Article  >  Backend Development  >  How to debug the controller that cannot be loaded in ThinkPHP? ?

How to debug the controller that cannot be loaded in ThinkPHP? ?

WBOY
WBOYOriginal
2016-12-01 01:27:301124browse

How to debug the controller that cannot be loaded in ThinkPHP? ?

Reply content:

How to debug the controller that cannot be loaded in ThinkPHP? ?

Test with breakpoints to see where it loads. I personally feel that there is something wrong with your tp configuration?

1. Whether the namespace of the controller is correct
2. The version of the framework
3. Screenshot of the error message
4. How to write the controller code

Check whether the address is wrong and then test with breakpoints. Furthermore, you can take a look at the error message or upload a screenshot for us to help you take a look

Specify what error was reported! The tp framework has rules for class and file naming

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn