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

Closed
Razican opened this Issue Aug 26, 2011 · 1 comment

Projects

None yet

2 participants

@Razican
Contributor
Razican commented Aug 26, 2011

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
Contributor

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