• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Controller's Index Action with Parameter

#1
[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.


Messages In This Thread
Controller's Index Action with Parameter - by El Forum - 08-21-2009, 11:06 AM
Controller's Index Action with Parameter - by El Forum - 08-21-2009, 12:55 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.