Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


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

Razican opened this Issue · 1 comment

2 participants


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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.