/** * Return the callback request by flushing the response. */ public function flush() { $response = new TAjaxResponse($this->response->data, $this->response->output); $response->render(); }
/** * Send the exception details back via JSON. */ public function render() { header("HTTP/1.0 505 Server Error", true, 505); $msg = $this->exception->getMessage(); $line = $this->exception->getLine(); $file = $this->exception->getFile(); error_log("Uncaught exception '{$msg}' near {$file}({$line})"); $response = new TAjaxResponse($this->getExceptionDetails()); $response->render(); }