Renders a JSON-encoded representation of the data produced by a route's action.
__construct(string $contentType)
stringThe content type to assign to the view.
render(array $data) : string
arrayThe data produced by an action.
string
make(string $name, string $contentType) : \HotMelt\View
stringClass or template name of the view to create. If no class by this name exists, an instance of \HotMelt\TemplateView will be returned.
stringThe content type to assign to the view.
\HotMelt\View
headers :
| type |
array |
|---|---|
statusCode :
| type |
int |
|---|---|