Search code examples
zend-frameworkbreadcrumbszend-navigation

zend navigation breadcrumbs to bypass ACL


I make use of Zend_Navigation and its menu helper and breadcrumbs helper together with Zend_Acl. This all works as expected. But is it possible to ignore the acl on the breadcrumbs only?

My goal is to render a different view when access is denied on a certain page (this works) but I want the breadcrumbs to show nonetheless. They are empty now.

Is there any way of achieving this without using two different containers?

thanks.


Solution

  • In your view page:

    $this->navigation()->setUseAcl(false);
    // or like this
    $this->navigation()->setUseAcl(false)->breadcrumbs();