I try to mix a regex route with Zend_Navigation but i have trouble with
defaults values.
I want to use Zend_Navigation for a filters menu like :
Popularity Period
Most popular Today
Most viewed This week
Top rated This month
Most commented All period
But i want a standard query string formatting ("galleries?s=mp&t=a" instead
of "galleries/index/index/s/mp/t/a").
So, i did :
Navigation config. : http://pastie.org/989048
Route config. : http://pastie.org/989058
But the thing is that because of the default values it doesn't keep
Popularity's param when selecting a Period and vice versa.
For example : if i have "galleries?s=mp&t=w" and if i roll over "Today"
period, the link is : "galleries?s=mv&t=d" because the popularity default
value is "mv" in my routes definition, even with "reset_params=0" into
navigation config.
I need default values because i don't have any, by going to "galleries" page
without params it won't work.
Any idea please ?
Thanks.
br,
Benjamin.
--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/1-10-4-Route-Regex-and-Navigation-tp2240216p2240216.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论