【发布时间】:2015-12-16 13:22:36
【问题描述】:
我如何获得all get/ put/ post 变量,如 Slim 2 中的 Slim 3?
苗条2,
$allGetVars = $app->request->get();
$allPutVars = $app->request->put();
$allPostVars = $app->request->post();
如何在 Slim 3 中做到这一点?
例如,http://example.com/books/1?title=hello&content=world
我现在如何在 Slim 3 中获取 title 和 content 中的参数?
苗条2,
$title = $app->request->get('title');
$content = $app->request->get('content');
如何在 Slim 3 中做到这一点?
【问题讨论】: