return [//? '__pattern__' => [//????? 'name' => '\w+',//? ],//? '[hello]'???? => [//????? ':id'?? => ['index/hello', ['method' => 'get'], ['id' => '\d+']],//????? ':name' => ['index/hello', ['method' => 'post']],//? ],?? ?'news/:id'?? => ['admin/index/info'],?? ?'hello/:name' => ['index/index/hello'],];在app應(yīng)用目錄下有個(gè)route.php 路由這樣配置的 但是訪問提示頁(yè)面錯(cuò)誤 請(qǐng)問是哪里的問題tp5是項(xiàng)目目錄http://localhost/tp5/public/hello/name/thinkphphttp://localhost/tp5/public/news/6001
1 回答

蛋腸加辣不要蔥
TA貢獻(xiàn)43條經(jīng)驗(yàn) 獲得超9個(gè)贊
use?think\Route; Route::get('路由規(guī)則',?'模塊名/方法名'); Route::post('路由規(guī)則',?'模塊名/方法名'); //eg: Route::post('user/add',?'api/user/adduser');
- 1 回答
- 0 關(guān)注
- 1721 瀏覽
添加回答
舉報(bào)
0/150
提交
取消