From 894b73a037fe4b04ff0d04df1e897578a18625a4 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Sat, 14 Apr 2018 23:52:38 +0900 Subject: [PATCH] Update uri.php --- system/uri.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/system/uri.php b/system/uri.php index a502577..80e30fb 100644 --- a/system/uri.php +++ b/system/uri.php @@ -150,6 +150,18 @@ if(!function_exists("get_requested_values")) { } } +if(!function_exists("get_binded_requests")) { + function get_binded_requests($rules, $method="_ALL") { + $data = array(); + + foreach($rules as $k=>$v) { + $data[$v] = get_requested_value($k); + } + + return $data; + } +} + if(!function_exists("get_array")) { function get_array($arr) { return is_array($arr) ? $arr : array();