【发布时间】:2012-07-10 14:48:46
【问题描述】:
例如链接:
/shop/phones/brend/apple/display/retina/color/red
地点:
phones - category alias
brend - name of attribute; apple - attribute value
display - name of attribute; retina - attribute value
color - name of attribute; red - attribute value
属性可以是任意数字。顺序也可能不同。
路线的起点很清楚:
/shop/{category}
接下来要做什么还不清楚。
在 symfony 1 中,一个集合在末尾的星号(“/shop/:category/*”)和所有没有明确标记的,并进来一对
name -> value
问题:symfony 2中如何描述路由?
【问题讨论】: