Integrating BjyAuthorize with ZendNavigation – Rob Allen's DevNotes


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.

The easiest way to do this is to add the following to ApplicationModule::onBoostrap():

This assumes that you've set up BjyAuthorize with some resources and rules. For example, in my config/autoload/, I have a 'bug' resource and have a rule that allows the reporter role access to the list and add privileges:

My ZendNavigation configuration for the bug menu item is in my Bug module's module.config.php and it looks like:

That's all there is to it.