Home >PHP Framework >ThinkPHP >What to do if thinkphp resource routing error occurs

What to do if thinkphp resource routing error occurs

藏色散人
藏色散人Original
2022-12-08 10:08:431285browse

Thinkphp resource routing error solution: 1. Open the corresponding tp file; 2. Set the resource routing of RESTFul request through "Route::resource('blog','index/blog');" ;3. Just redirect public.

What to do if thinkphp resource routing error occurs

The operating environment of this tutorial: Windows 7 system, ThinkPHP version 5, Dell G3 computer.

What should I do if thinkphp resource routing error occurs?

thinkphp5 resource routing access 404 error

Solution: redirect public

What to do if thinkphp resource routing error occurs

What to do if thinkphp resource routing error occurs

Recommended learning: "thinkPHP Video Tutorial"

The above is the detailed content of What to do if thinkphp resource routing error occurs. 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