Home > PHP Framework > ThinkPHP > 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?

藏色散人
Release: 2022-12-06 10:43:18
Original
2863 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template