Hi all,
I'm creating a cms with zf. Websites made with it might become very large and 
can contain a lot of pages. All these pages are entries in the database and 
have a label, the appropriate part of the url and a link to their parent 
entry.
I loop through the whole tree to create an array for all the routes (they are 
in most cases Zend_Controller_Router_Route_Static and sometimes 
Zend_Controller_Router_Route). I need at several places a menu, breadcrumb or 
sitemap, so I use Zend_Navigation as well. But they both share almost the same 
information!

Isn't is much more efficient to be able to send a Zend_Navigation_Container 
towards the router? Then we require to make a tree once and the application 
code will be much cleaner. I know the router is a straight array and the 
container might have multiple subnodes, but still I see a lot of 
opportunities. Any comments?

Regards, Jurian
---
Jurian Sluiman
Soflomo.com

Reply via email to