0

I want to create breadscrumb in Smarty template using Zend_Navigation.

So far what I did:

$config = new Zend_Config_Xml(APPLICATION_PATH.'/configs/navigation.xml');
$navigation = new Zend_Navigation($config);

How do I use $navigation in the template?

Usualy in the layout navigation

$this->navigation()->breadcrumbs()->setLinkLast(false)->setMinDepth(0)->render();

Thanks

vascowhite
  • 18,120
  • 9
  • 61
  • 77
Khaled
  • 19
  • 2

1 Answers1

0

Maybe this:

$smarty->assign('breadcrumbs', $this->navigation()->breadcrumbs()->setLinkLast(false)->setMinDepth(0)->render());

and then use

$breadcrumbs

in your smarty template

Dirk McQuickly
  • 2,099
  • 1
  • 17
  • 19