Re: [fw-general] Zend_Navigation save to XML

2009-07-23 Thread admirau
DASPRiD wrote: > > It would be helpful when you could provide a dump of the generate > > Yes, this extend was wrong copy/paste. Here is the code: // action body $navigation = new Zend_Navigation(new Zend_Config_Xml(APPLICATION_PATH . '/configs/navigation/main.xml', 'main'))

Re: [fw-general] Zend_Navigation save to XML

2009-07-23 Thread Ben Scholzen 'DASPRiD'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It would be helpful when you could provide a dump of the generated Zend_Config object. Additionally, it doesn't make any sense to set an extend on the root node of the configuration. ... : ___ _ ___ ___ ___ _ ___

[fw-general] Zend_Navigation save to XML

2009-07-22 Thread admirau
How to save Zend_Navigation to XML? I tried like this: $navigation = new Zend_Navigation(new Zend_Config_Xml(APPLICATION_PATH . '/configs/navigation/main.xml', 'main')); $config = new Zend_Config($navigation->toArray()); $config->setExtend('main'); $writer = new Zend_Config_Wri