Hello,

Hum, i tried to do the following to test your solution, i think i'm wrong
somewhere :)

Layout
[code]
$page = $this->navigation()->getContainer()->current();
$page->set('test', array('test' => 'awesome test'));
echo $this->navigation()                              
              ->breadcrumbs()
              ->setMinDepth(0)                                               
              ->setLinkLast(true)                                               
                                                 
              ->setPartial('shared/p-breadcrumbs.phtml');
[/code]

Partial
[code]
foreach ($this->pages as $page) :
    if ($page->isActive()) :
        $test = $page->get('test');             
        die($test['test']);
    endif;
endforeach;
[/code]

The die() comes but i don't get my "awesome test". What am i doing wrong ?
Is there any way to pass vars not only on the active page ?

Thanks !

BR,
Benjamin.
-- 
View this message in context: 
http://n4.nabble.com/1-9-6-Passing-vars-to-breadcrumbs-partial-tp1473451p1474271.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to