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'))
-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.
...
: ___ _ ___ ___ ___ _ ___
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