From 6c1d3fa35198c54c69e37aa74fa80723209c1d1e Mon Sep 17 00:00:00 2001 From: Pascal Kriete Date: Wed, 15 Dec 2010 10:51:37 -0500 Subject: Small tweak to the _remap documentation (see #208). --- user_guide/general/controllers.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'user_guide/general') diff --git a/user_guide/general/controllers.html b/user_guide/general/controllers.html index 1d9cd0328..3a85ca38a 100644 --- a/user_guide/general/controllers.html +++ b/user_guide/general/controllers.html @@ -243,9 +243,17 @@ allowing you to define your own function routing rules.

    }
} -

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 From aaec1e491f99e9d733b06b721d8d4d1ae778135a Mon Sep 17 00:00:00 2001 From: Pascal Kriete Date: Thu, 20 Jan 2011 00:01:21 -0500 Subject: Renaming the unicode class to utf8 so we don't run the risk of violating the Unicode Consortium's trademark. --- user_guide/general/core_classes.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'user_guide/general') diff --git a/user_guide/general/core_classes.html b/user_guide/general/core_classes.html index 35043d9ca..e36a5e2b9 100644 --- a/user_guide/general/core_classes.html +++ b/user_guide/general/core_classes.html @@ -84,8 +84,8 @@ know what you are doing before attempting it.

  • Log
  • Output
  • Router
  • -
  • Unicode
  • URI
  • +
  • Utf8
  • Replacing Core Classes

    -- cgit v1.2.3-24-g4f1b