Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
Razican opened this Issue · 1 comment

2 participants

@Razican

I have a _remap() function like this:

_remap($money=0)
{ code }

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

@derekjones

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.