如何使用thinkPHP

在浏览器输入localhost:8022/index.php/index/index/test

image.png

实际访问文件位置

image.png

/application/index/controller/index.php的test方法

image.png

index.php后面的路径解析

第一个index是index模块

第二个index是index模块的index.php控制器文件

第三个test是控制器文件的test方法


文章导航