phper_Wang
2019-05-09 18:21
<?php
namespace app\index\controller;
use think\Request;
class Index
{
public function index(Request $request)
{
//http://localhost/TP4/public/index/index/Index/type/5.html?id=10
dump($request->param());
}
}
访问链接改成 http://localhost/TP4/public/index.php/index/Index/index/type/5.html?id=10 试试,如果你要用隐藏入口文件之类的,你要把应用程序的根目录设置到public目录
快速入门ThinkPHP 5.0--基础篇
58803 学习 · 516 问题
相似问题