我想使用Zend_Navigation在Smarty模板中创建breadscrumb。
到目前为止我做了什么:
$config = new Zend_Config_Xml(APPLICATION_PATH.'/configs/navigation.xml');
$navigation = new Zend_Navigation($config);
如何在模板中使用$navigation?
通常在布局导航
$this->navigation()->breadcrumbs()->setLinkLast(false)->setMinDepth(0)->render();
感谢
也许这个:
$smarty->assign('breadcrumbs', $this->navigation()->breadcrumbs()->setLinkLast(false)->setMinDepth(0)->render());
然后使用
$breadcrumbs
在您的智能模板中