Welcome Guest, Not a member yet? Register   Sign In
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



Theme © iAndrew 2016 - Forum software by © MyBB