I'm searching for a correct solution for a routing problem I'm struggling with for quite a while now, but I can't extract the answer out of the Zend_Controller_Router manual page.
Our system produces friendly url's lik this:
- language/catagory/category/product
- language/catagory
- language/category/product/article
- language/section/page/subpage
- etc...
This can be quite long/deep (the customer organizes its tree), but I can map a controller/action/id/etc... to every url.
I've tried to subclass the router, but that overrides the complete routing section.
I want to be able to check for a record in my mapping table (url to controller/etc...), but pass the request to a next route (with translated segments and the 'normal' route e.g.) when no mapping could be done.
The nicest thing would be if I could use assemble() to create a url base don the mapping table.
Do I need a router, or a route and how would I get started?
Thanks in advance!
Regards,
Jachim Coudenys
没有评论:
发表评论