PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information

Rob Allen: Integrating BjyAuthorize with ZendNavigation

Note: This article was originally published at PHPDeveloper on 18 April 1429.
PHPDeveloper

Rob Allen has posted a technique for integrating the BjyAuthorize, a helpful module for access control in your Zend Framework 2 application, with the ZendNavigation module for user permissions-based navigation updates.

If you are using BjyAuthorize for ACL configuration and want to use ZendNavigation's ZendAcl integration features, then you need to set the Acl and Role information into ZendNavigation.

He includes the code you'll need to add to both the bootstrap of your application and the configuration to set up the "rule_providers" and "resource_providers". Then you can update your navigation settings to include "resource" and "rule" options to define with options a user can see.