使用Zend_Navigation,如何创建基于图像的导航?

时间:2011-03-16 00:32:04

标签: php html css zend-framework navigation

(我假设我的导航应该在布局脚本中。)

我有一个由翻转图像组成的导航栏。但是,与活动页面对应的图像应该是不同的颜色。我是通过改变图像来做到这一点的。我的问题是,我应该在哪里以及如何使用Zend_Navigation实现这一点?

详细信息:菜单本身只是一堆在容器内浮动到左侧的div。每个div都有一个背景图片。

感谢您的帮助,

1 个答案:

答案 0 :(得分:1)

$this->navigation ()->breadcrumbs ()->setPartial ('your_own_breadcrumbs.phtml');

然后在scripts/your_own_breadcrumbs.phtml以任意方式呈现菜单。

foreach ($this->pages as $page)
{
    ...
}