开发者

ZF view navigation helper: How to set several menu for one view?

开发者 https://www.devze.com 2023-03-31 22:07 出处:网络
I have two xml menu. 开发者_JAVA百科I set it up this way: <?php echo $this->Navigation($this->menuPrivate)->menu(); ?>

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

精彩评论

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

关注公众号