Home > Article > PHP Framework > What should I do if thinkphp5 prompts that the controller does not exist?
thinkphp5 prompts that the controller does not exist. Solution: 1. Check whether the namespace in the corresponding controller is written correctly and change it to the correct namespace; 2. Open the corresponding tp file and modify the class name. Can.
The operating environment of this tutorial: Windows 7 system, ThinkPHP version 5, Dell G3 computer.
What should I do if thinkphp5 prompts that the controller does not exist?
thinkphp5 controller does not exist Solution
Generally the controller does not exist because the namespace has not been modified. Please check your corresponding control In the first line of the container, the namespace is not written correctly.
Is the namespace correct?
Another situation: only the file is created and the class name is not modified. Right at the very beginning, the class name needs to be modified.
Recommended study: "thinkPHP Video Tutorial"
The above is the detailed content of What should I do if thinkphp5 prompts that the controller does not exist?. For more information, please follow other related articles on the PHP Chinese website!