Welcome Guest, Not a member yet? Register   Sign In
Routing example in user guide doesn't work?
#2

[eluser]Matthew Pennell[/eluser]
Yes, your interpretation is correct - you can only remap calls to methods in the journals class by using regex backreferences in the destination string.

I find it most useful for re-directing requests without the name of the controller in:
Code:
$route['(\d+\/[a-z\-]+)'] = "pages/view/$1";
which would redirect /123/my-page-title to pages/view/123.


Messages In This Thread
Routing example in user guide doesn't work? - by El Forum - 09-03-2007, 08:20 AM
Routing example in user guide doesn't work? - by El Forum - 09-03-2007, 09:13 AM
Routing example in user guide doesn't work? - by El Forum - 09-03-2007, 09:24 AM
Routing example in user guide doesn't work? - by El Forum - 09-03-2007, 09:27 AM
Routing example in user guide doesn't work? - by El Forum - 09-03-2007, 09:51 AM
Routing example in user guide doesn't work? - by El Forum - 09-03-2007, 09:53 AM
Routing example in user guide doesn't work? - by El Forum - 09-03-2007, 12:00 PM
Routing example in user guide doesn't work? - by El Forum - 09-04-2007, 07:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB