library humus-rbac-navigation-module
Integration of ZfcRbac and SpiffyNavigation for Zend Framework 2
prolic/humus-rbac-navigation-module
Integration of ZfcRbac and SpiffyNavigation for Zend Framework 2
- Saturday, August 29, 2015
- by prolic
- Repository
- 2 Watchers
- 1 Stars
- 3,418 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 1 Open issues
- 1 Versions
- 0 % Grown
HumusRbacNavigationModule
, (*1)
Integration of ZfcRbac and SpiffyNavigation for Zend Framework 2, (*2)
Dependencies
Installation
- Add
"prolic/humus-rbac-navigation-module": "dev-master"
to your composer.json
- Run
php composer.phar install
- Enable the module in your
config/application.config.php
by adding HumusRbacNavigationModule
to modules
Example-Configuration
return array(
'modules' => array(
'ZfcRbac',
'SpiffyNavigation',
'HumusRbacNavigationModule',
)
);
Usage
Create your navigation using SpiffyNavigation as usual,
you can either set the "role" or the "permission" option to any route., (*3)
The navigation entries will be hidden in SpiffyNavigation automatically., (*4)