Slim Framework v3 Put method Error?


#1

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


#2

$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.