|
|
@@ -97,7 +97,8 @@ class WebAppController extends AppController
|
|
|
}
|
|
|
|
|
|
//$template->display($error_template);
|
|
|
- return $this->response->html( $template->fetch($error_template) , $http_status);
|
|
|
+ //return $this->response->html( $template->fetch($error_template) , $http_status);
|
|
|
+ $response_content = $template->fetch($error_template);
|
|
|
|
|
|
} else {
|
|
|
//header("HTTP/1.0 " . $http_status . " " . $meta_title);
|
|
|
@@ -121,9 +122,12 @@ class WebAppController extends AppController
|
|
|
|
|
|
//echo $output_html;
|
|
|
|
|
|
- return $this->response->html($output_html, $http_status);
|
|
|
+ //return $this->response->html($output_html, $http_status);
|
|
|
+ $response_content = $output_html;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ throw new \Exception($response_content, $http_status);
|
|
|
}
|
|
|
|
|
|
protected function showError400($title = 'Bad request', $message = '')
|