Home > Backend Development > PHP Tutorial > tp path problem

tp path problem

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-09-15 11:30:55
Original
1081 people have browsed it

index.php?s=/Api/SendEms/sendCode.html
can be accessed, but the following three cannot be used
index.php/Api/SendEms/sendCode.html
api.php/SendEms/sendCode.html

Reply content:

index.php?s=/Api/SendEms/sendCode.html
can be accessed, but the following three cannot be used
index.php/Api/SendEms/sendCode.html
api.php/SendEms/sendCode.html

It’s caused by your irregular naming. I’ve encountered this problem before.
Capitalize the first letter of the controller: Change the class name named SendEms+Controller to SendemsController, and change the controller file name to SendemsController.class.php
This way: index.php/Api/Sendems/sendCode.html can be accessed.
You give it a try. Let me know if you have any questions.

Related labels:
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template