Home >Backend Development >PHP Tutorial >tp path problem
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
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.