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

#2
[eluser]Robert Wallis[/eluser]
You are very close, it actually doesn't have to do with the presence of parameters in index(). It's all about routes.

The routes work on a first matching basis. So if the index route has an :any at the end of it, the page name won't be used. The best solution is the one you found to put the other actions above your index. You could also exclude the action name in a regex on the index route.


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.