From 3431ae375f7e9283ccfe7e165f39bfc84d79f694 Mon Sep 17 00:00:00 2001 From: Pascal Kriete Date: Tue, 9 Nov 2010 15:19:50 -0500 Subject: Adding a second parameter to _remap that contains an array of the leftover segments. --- user_guide/general/controllers.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'user_guide/general/controllers.html') diff --git a/user_guide/general/controllers.html b/user_guide/general/controllers.html index 782fbfa7e..cdc4b3ee5 100644 --- a/user_guide/general/controllers.html +++ b/user_guide/general/controllers.html @@ -229,7 +229,7 @@ CodeIgniter permits you to override this behavior through the use of the _r get called regardless of what your URI contains. It overrides the normal behavior in which the URI determines which function is called, allowing you to define your own function routing rules.

-

The overridden function call (typically the second segment of the URI) will be passed as a parameter the _remap() function:

+

The overridden function call (typically the second segment of the URI) will be passed as a parameter to the _remap() function:

function _remap($method)
{
@@ -243,6 +243,7 @@ allowing you to define your own function routing rules.

    }
}
+

An array of leftover segments are passed into _remap() as an optional second parameter.

-- cgit v1.2.3-24-g4f1b