From 6c1d3fa35198c54c69e37aa74fa80723209c1d1e Mon Sep 17 00:00:00 2001
From: Pascal Kriete
An array of leftover segments are passed into _remap() as an optional second parameter.
- +Any extra segments after the method name are passed into _remap() as an optional second parameter. This array can be used in combination with PHP's call_user_func_array to emulate CodeIgniter's default behavior.
+function _remap($method, $params = array())
+{
+ $method = 'process_'.$method;
+ if (method_exists($this, $method)
+ {
+ return call_user_func_array(array($this, $method), $params);
+ }
+ show_404();
+}
--
cgit v1.2.3-24-g4f1b