I am working with Aerys but I have a problem. When I send my parameters through post
I don't know how to access to the data.
In the documentation they use the following function:
$body = yield parseBody($request);
In the documentation, there are two functions to use the parseBody
they use get
or getArray
with the key to get the data. As I said before I am sending an array of data but this array does not have a specific key
to be accessed.
do you have any idea how to get the data of that array? If print $body
it returns an object.
Aerys\ParsedBody Object
(
[fields:Aerys\ParsedBody:private] => Array
(
[0] => Array
(
[0] => %222f384ae8-004b-44e1-8c6b-9b2a249b069f%22
)
)
)