Welcome Guest, Not a member yet? Register   Sign In
Wildcards :num and :any not working in my routes
#10

[eluser]eggshape[/eluser]
Hi _yuri_,

You're right about that array_slice. I noticed too that when the Route class is instantiated, the _set_route_mapping() function is called. In this function the $route['default_controller'] is unset after $route['default_controller'] is assigned to $this->class.

I know unset does not pop/shift the array, so the indexes would remain the same. So you're probably right that any additional routes needs to assigned after the two default ones.

Edit: why is array_slice() even used?


Messages In This Thread
Wildcards :num and :any not working in my routes - by El Forum - 08-11-2007, 06:10 AM
Wildcards :num and :any not working in my routes - by El Forum - 08-11-2007, 11:02 AM
Wildcards :num and :any not working in my routes - by El Forum - 08-11-2007, 04:01 PM
Wildcards :num and :any not working in my routes - by El Forum - 08-25-2007, 11:41 AM
Wildcards :num and :any not working in my routes - by El Forum - 08-25-2007, 12:23 PM
Wildcards :num and :any not working in my routes - by El Forum - 08-25-2007, 12:50 PM
Wildcards :num and :any not working in my routes - by El Forum - 01-10-2008, 03:19 AM
Wildcards :num and :any not working in my routes - by El Forum - 01-10-2008, 07:22 PM
Wildcards :num and :any not working in my routes - by El Forum - 01-11-2008, 06:36 AM
Wildcards :num and :any not working in my routes - by El Forum - 01-11-2008, 11:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB