_remap() Wont work as expected if no 2nd parameter is added #316

Razican opened this Issue Aug 26, 2011 · 1 comment


None yet

2 participants

Razican commented Aug 26, 2011

I have a _remap() function like this:

{ code }

When I pass /controller/25 it says $money=25, but when I pass /controller/, $money is set to 'index'. How can be fixed?


That is expected behavior, as the method that the router is requesting from the controller class is what is passed as the first parameter. No explicit method = index method. You can still decide what to do at that point, of course.

@derekjones derekjones closed this Aug 26, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment