Op Tuesday 12 May 2009 11:39:55 schreef Jurian Sluiman: > 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
I'm sorry to kick this message to the top, but lately another post came with the same idea. ZF is used more and more and not always the uri structure module/controller/action is required, eg for cms like applications. This implementation requires less code to do the same thing. Or should I write something as proposal on the wiki? Regards, Jurian -- Jurian Sluiman Soflomo.com
