Hierachical Router

View: New views
1 Messages — Rating Filter:   Alert me  

Hierachical Router

by Marcel Bensch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey folks,

i'm new to Zend Framework and have a question about the Zend_Router
functionality. At first i want to say sorry for my bad english, i'm from
Germany ...

What i want to do:
I want to build a shop system with the posibility to have an unlimited
hierachical structure.

My url shoul look like this:

www.example.com/category1/category2/../Product.html

So my thought was to use the Regex Router.
Controller and action are predefined (Controller:products, Action: view).

To separate the product information from the category information is no
problem, because the products name always ends with ".html".

But now i need to pass an unknown amount of categorys to an array, and i
don't know how to do this.

Maybe you can help me !

Thanks a lot !

Greetings,

Marcel