Closed Yahasana closed 5 years ago
add two useful handy helpers to render JSON or XML
function jsonAction() { // render to JSON and stop the framework try to parse layout or view return $this->response->toJson([...]); // or render to XML return $this->response->toXml([...]); }
add two useful handy helpers to render JSON or XML