Zend Framework
3.0
|
Helper for simplifying JSON responses. More...
Public Member Functions | |
__invoke ($data, array $jsonOptions=[]) | |
Encode data as JSON and set response header. | |
setResponse (Response $response) | |
Set the response object. | |
Public Member Functions inherited from AbstractHelper | |
setView (Renderer $view) | |
Set the View object. | |
getView () | |
Get the view object. | |
Protected Attributes | |
$response | |
Protected Attributes inherited from AbstractHelper | |
$view = null | |
Helper for simplifying JSON responses.
__invoke | ( | $data, | |
array | $jsonOptions = [] |
||
) |
Encode data as JSON and set response header.
mixed | $data | |
array | $jsonOptions | Options to pass to JsonFormatter::encode() |
|
protected |