ZF view navigation helper: How to set several menu for one view?
I have two xml menu. 开发者_JAVA百科I set it up this way:
<?php echo $this->Navigation($this->menuPrivate)->menu(); ?>
<hr />
<?php echo $this->Navigation($this->interfaceMenu)->menu(); ?>
<?php
echo '<pre><br/>';
var_dump($this->Navigation($this->interfaceMenu));
die();
?>
Within var_dump is correct data. But the menu rendering shows me the same result - $this->interfaceMenu
the same as $this->menuPrivate
.
So is it possible to setup different menu for one view?
Sorry, my fault. It should be look like:
<?php echo $this->Navigation()->menu($this->menuPrivate); ?>
<hr />
<?php echo $this->Navigation()->menu($this->interfaceMenu); ?>
精彩评论