From d9b061049a2069b33716b26c933a9b9c54648504 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Sun, 15 Apr 2018 01:14:23 +0900 Subject: [PATCH] Update uri.php --- system/uri.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/system/uri.php b/system/uri.php index 80e30fb..9251db4 100644 --- a/system/uri.php +++ b/system/uri.php @@ -80,6 +80,13 @@ if(!function_exists("redirect_uri")) { } } +if(!function_exists("redirect_route")) { + function redirect_route($route, $data=array()) { + $uri = sprintf("%s?route=%s&%s", base_url(), $route , http_build_query($data)); + redirect_uri($uri); + } +} + if(!function_exists("read_requests")) { function read_requests() { $requests = array(