Normaly I use this
$this->response->getBody()->write(json_encode($array));
from a controller/action,
but is there a better way always to get a json stream back to client???
Thank you for any hint.
Michael
Normaly I use this
$this->response->getBody()->write(json_encode($array));
from a controller/action,
but is there a better way always to get a json stream back to client???
Thank you for any hint.
Michael
Thanks a lot for this but this is just a response with pane json string as from ajax request.
I’m still have this problem.
Michael