>
> I've tried adding a requirement that the "username" part of the route
> cannot match the string "search", but it seems to break the route
> entirely. Trying to access /members/foo now throws an error stating that
> the foo controller was not found, when it should be routing to the
> profile controller and displaying the "foo" profile.
>
> Here's my route:
>
> routes.profile.type = "Zend_Controller_Router_Route"
> routes.profile.route = "members/:username"
> routes.profile.defaults.module = "members"
> routes.profile.defaults.controller = "profile"
> routes.profile.defaults.action = "view"
> routes.profile.defaults.username = ""
> routes.profile.reqs.username = "!(search)"
>
>
Did you ever find the solution to this because I have a similar problem?
--
View this message in context: http://www.nabble.com/Routing-Trouble-tp16482444p18810409.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论