08-21-2009, 11:06 AM
[eluser]ciuser99[/eluser]
I just came across something kind of interesting. It's not necessarily a bug but it threw me off for a while. I'm using the latest Code Igniter (v.1.7.1). If your controller index action contains a parameter and you have any other actions in the same controller with a parameter and if you also place the index route in the routes.php file before the other actions, the page will always go to the index action. The other actions will be ignored unless you place the other routes ahead of the index route in the routes.php. This may be by design or perhaps it's just bad practice to place a parameter in the index action. Does anyone have any comments on this? Thanks.
I just came across something kind of interesting. It's not necessarily a bug but it threw me off for a while. I'm using the latest Code Igniter (v.1.7.1). If your controller index action contains a parameter and you have any other actions in the same controller with a parameter and if you also place the index route in the routes.php file before the other actions, the page will always go to the index action. The other actions will be ignored unless you place the other routes ahead of the index route in the routes.php. This may be by design or perhaps it's just bad practice to place a parameter in the index action. Does anyone have any comments on this? Thanks.