方法不存在:app\index\controller\Index->type()
<?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());
????}
}
2019-05-11
訪問鏈接改成?http://localhost/TP4/public/index.php/index/Index/index/type/5.html?id=10? 試試,如果你要用隱藏入口文件之類的,你要把應用程序的根目錄設置到public目錄