Following up this question, I posted a while back, I'm trying to create a custom breadcrumb render.
For some reasons I can't get access to the container!
In my controller:
$config = new Zend_Config($menu);
$nav = new Zend_Navigation($config);
$this->view->nav = $nav;
$page = $this->view->nav->findOneBy('id', $id);
if ($page)
{
$page->setActive();
}
In my view:
<?php echo $this->navigation()->breadcrumbs()->renderPartial($this->nav, 'breadcrumbs.phtml'); ?>
In my breadcrumbs.phtml
<?php
foreach($this->container as $page)
{
echo $page->label;
}
?>
I get:
WARNING: INVALID ARGUMENT SUPPLIED FOR FOREACH() IN