您好,欢迎访问一九零五行业门户网

Slim Get带参数404错误

接口实现:
$app->get('/hello/:name/', function ($name) { echo "hello, $name"; });

get-url:http://localhost/prj/index.php/hello?name=myname
测试结果:404 not found
回复内容:接口实现:
$app->get('/hello/:name/', function ($name) { echo "hello, $name"; });

get-url:http://localhost/prj/index.php/hello?name=myname
测试结果:404 not found 
路由直接http://localhost/prj/index.php/hello/myname就可以吧
其它类似信息

推荐信息