From a2a265404f5a73807c514ada0e09330fef04d209 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 8 Oct 2011 10:57:37 -0400 Subject: [PATCH] Add RootController::StopWithCode() --- http/root_controller.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/http/root_controller.php b/http/root_controller.php index e95037a..c92e193 100644 --- a/http/root_controller.php +++ b/http/root_controller.php @@ -132,6 +132,15 @@ class RootController $this->_Exit(); } + /*! + Sets the response code and stops the controller. Returns void. + */ + public function StopWithCode($code) + { + $this->response->response_code = $code; + $this->Stop(); + } + /*! Wrapper around PHP exit(). */ -- 2.43.5