Home  >  Article  >  PHP Framework  >  What should I do if thinkphp5 prompts that the controller does not exist?

What should I do if thinkphp5 prompts that the controller does not exist?

藏色散人
藏色散人Original
2022-12-06 10:43:182835browse

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.

What should I do if thinkphp5 prompts that the controller does not exist?

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.

What should I do if thinkphp5 prompts that the controller does not exist?

Is the namespace correct?

What should I do if thinkphp5 prompts that the controller does not exist?

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.

What should I do if thinkphp5 prompts that the controller does not exist?

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!

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