diff options
author | Lim Yuen Hoe <yuenhoe@hotmail.com> | 2014-09-19 01:38:38 +0800 |
---|---|---|
committer | Lim Yuen Hoe <yuenhoe@hotmail.com> | 2014-09-19 01:48:45 +0800 |
commit | ed13a04c4c7906c190c4a02acecb27a77b3bdb2a (patch) | |
tree | aa7eef726548ed7223449a02a149af3b7b7a8c4f /app/Core/Request.php | |
parent | 7fac9783c6593f89266e6d152faeb2aef09b6dfc (diff) |
redirect to original target page after logging in
Diffstat (limited to 'app/Core/Request.php')
-rw-r--r-- | app/Core/Request.php | 12 |
1 files changed, 12 insertions, 0 deletions
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']; + } + } |