开发者

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); ?>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜