开发者

zend navigation breadcrumbs to bypass ACL

开发者 https://www.devze.com 2023-03-21 20:35 出处:网络
I make use of Zend_Navigation and its menu helper and breadcrumb开发者_StackOverflows helper together with Zend_Acl. This all works as expected. But is it possible to ignore the acl on the breadcrumbs

I make use of Zend_Navigation and its menu helper and breadcrumb开发者_StackOverflows 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.


In your view page:

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

精彩评论

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

关注公众号