when i using put method
can’t retrive form-data values
here is my code
$app->put(’/api/task/’, function ($request, $response, $args) {
$input = $request->getParsedBody();
print_r($input);
});
i’m also try ‘getParams’ method that also can’t
when i using put method
can’t retrive form-data values
here is my code
$app->put(’/api/task/’, function ($request, $response, $args) {
$input = $request->getParsedBody();
print_r($input);
});
i’m also try ‘getParams’ method that also can’t
$input = $request->getParsedBody();
looks good-- so whatever is going on is likely elsewhere in your code. I assume you are overriding the HTTP request method in the form.