summaryrefslogtreecommitdiffstats
path: root/user_guide/general
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide/general')
-rw-r--r--user_guide/general/controllers.html12
-rw-r--r--user_guide/general/core_classes.html2
2 files changed, 11 insertions, 3 deletions
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.</p>
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
}</code>
-<p>An array of leftover segments are passed into <kbd>_remap()</kbd> as an optional second parameter.</p>
-
+<p>Any extra segments after the method name are passed into <kbd>_remap()</kbd> as an optional second parameter. This array can be used in combination with PHP's <a href="http://php.net/call_user_func_array">call_user_func_array</a> to emulate CodeIgniter's default behavior.</p>
+<code>function _remap($method, $params = array())<br />
+{<br />
+&nbsp;&nbsp;&nbsp;&nbsp;$method = 'process_'.$method;<br />
+&nbsp;&nbsp;&nbsp;&nbsp;if (method_exists($this, $method)<br />
+&nbsp;&nbsp;&nbsp;&nbsp;{<br />
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return call_user_func_array(array($this, $method), $params);<br />
+&nbsp;&nbsp;&nbsp;&nbsp;}<br />
+&nbsp;&nbsp;&nbsp;&nbsp;show_404();<br />
+}</code>
<a name="output"></a>
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.</p>
<li>Log</li>
<li>Output</li>
<li>Router</li>
-<li>Unicode</li>
<li>URI</li>
+<li>Utf8</li>
</ul>
<h2>Replacing Core Classes</h2>