2009年10月31日星期六

Re: [fw-mvc] Routing trees and its decendants

I would use a regex route like myblog/:categories/:articleid then i would
extract the individual categories myself from the single categories route
segment in the controller or in a front controller plugin. I think that
would be the simplest way.

If you need more control directly in the router i think you could put
something together with the route chain but i havent dived into that yet so
i cant offer advice there.


David G. wrote:
>
> I've been wondering, how would I route a hierarchical tree? like
>
> http://localhost/Services/WebDevelopment/ or (better)
>
> http://myblog/parentCategory/subcategory1/subsubcategory2/article-id
>
> been trying but it seems I need a little push to make a breakthrough =/
>
> Thanks in advance,
> David
>

--
View this message in context: http://old.nabble.com/Routing-trees-and-its-decendants-tp26139966p26148609.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: