How is it possible to add new navigation pages at a SPECIFIC position
in Zend_Navigation_Container?
For example, in my bootstrap, I define:
/contact/france/paris/ (/module/controller/action)
In Contact_FranceController::parisAction() I need to get names of
workers from a database and add them to Zend_Navigation_Container,
using the addPage() method. The resulting URL should look like this:
/contact/france/paris/jim
I do this with:
$page = new Zend_Navigation_Page_Mvc(array(
'module' => 'contact',
'controller' => 'france',
'action' => 'paris',
'params' => array('person' => 'jim'),
'label' => 'Sub-Site of Jim',
'title' => 'Jim'
));
$navigation->addPage($page);
However, this always adds the new page (with correct URI) to the root
of the menu, not in its correct position:
- Contact
-- France
--- Paris
---- Jim
How can I add a page at a specific position in Zend_Navigation_Container?
I am using ZF 1.8.2.
TIA
Jonathan Maron