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應用目錄下有個route.php 路由這樣配置的 但是訪問提示頁面錯誤 請問是哪里的問題tp5是項目目錄http://localhost/tp5/public/hello/name/thinkphphttp://localhost/tp5/public/news/6001
1 回答

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