From ed13a04c4c7906c190c4a02acecb27a77b3bdb2a Mon Sep 17 00:00:00 2001 From: Lim Yuen Hoe Date: Fri, 19 Sep 2014 01:38:38 +0800 Subject: redirect to original target page after logging in --- app/Core/Request.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'app/Core/Request.php') diff --git a/app/Core/Request.php b/app/Core/Request.php index a1513459..e86cf609 100644 --- a/app/Core/Request.php +++ b/app/Core/Request.php @@ -136,4 +136,16 @@ class Request $name = 'HTTP_'.str_replace('-', '_', strtoupper($name)); return isset($_SERVER[$name]) ? $_SERVER[$name] : ''; } + + /** + * Returns current request's query string, useful for redirecting + * + * @access public + * @return string + */ + public function getQueryString() + { + return $_SERVER['QUERY_STRING']; + } + } -- cgit v1.2.3