Json extends BaseView
Table of Contents
- __construct() : mixed
- render() : void
- Displays data in JSON format
- setResponseHeaders() : void
- Sets response headers by ini file
Methods
__construct()
public
__construct() : mixed
Return values
mixed —render()
Displays data in JSON format
public
render(array<string|int, int|string|bool|array|\DateTime|null> $data) : void
Parameters
- $data : array<string|int, int|string|bool|array|\DateTime|null>
Return values
void —setResponseHeaders()
Sets response headers by ini file
private
setResponseHeaders() : void