方法不存在: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
訪問(wèn)鏈接改成?http://localhost/TP4/public/index.php/index/Index/index/type/5.html?id=10? 試試,如果你要用隱藏入口文件之類(lèi)的,你要把應(yīng)用程序的根目錄設(shè)置到public目錄