I'm trying to set up routing in the following way using Zend Framework.
- http://localhost
- http://localhost/category/
- http://localhost/category/product
- http://localhost/category/subcategory/product
- http://localhost/category/subcategory/subsubcategory/product
- http://localhost/category/subcategory/subsubcategory/subsubsubcategory/product
- http://localhost/category/subcategory/subsubcategory/subsubsubcategory/subsubsubsubcategory/product
I've tried with normal routing but it only got me so far, and it's not working correctly.
resources.router.routes.product.route = ":categoryAlias/:productAlias/*"
resources.router.routes.product.type = "Zend_Controller_Router_Route"
resources.router.routes.product.defaults.controller = index
resources.router.routes.product.defaults.action = catalog
resources.router.routes.category.route = ":categoryAlias/*"
resources.router.routes.category.type = "Zend_Controller_Router_Route"
resources.router.routes.category.defaults.controller = index
resources.router.routes.category.defaults.action = catalog
I can get to:
But that's as far as I've gotten to. Any ideas or tips on how to approach this in a better way?