Welcome Guest, Not a member yet? Register   Sign In
Default controller always called
#4

[eluser]mddd[/eluser]
Given your routes, if any of those routes is matched, the home controller should not be called but the controller that the route points to.

I do see a few errors, like this:
Code:
* Basket */
$route['basket'] = "basket/basket";
$route['basket/(:any)'] = "basket/basket/$1";
$route['basket/delete'] = "basket/basket/delete_basket";
In this case, basket/delete is never matched because if the url is /basket/delete, the second rule will match! So the third will never take effect.


Messages In This Thread
Default controller always called - by El Forum - 08-03-2010, 07:32 AM
Default controller always called - by El Forum - 08-03-2010, 08:03 AM
Default controller always called - by El Forum - 08-03-2010, 08:06 AM
Default controller always called - by El Forum - 08-03-2010, 08:18 AM
Default controller always called - by El Forum - 08-03-2010, 09:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB