tp path problem

WBOY
WBOYOriginal
2016-09-15 11:30:551038browse

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.

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