php - Use spiffy navigation with zfcrbac module -
i'm trying understand how spiffy-navigation works. integrate module, it's working well. have navigation. doc says :
rbac specific options
role: required role use determine if access granted.
permission: required permission use determine if access granted.
but, if did that, still not working.
'containers' => array( 'default' => array( array( 'options' => array( 'label' => 'profil', 'route' => 'profil', 'role' => 'members', 'permission' => 'member' ), 'pages' => array( // ... ) ) ) ),
edit(may 27) : in fact try of discussion :zf2 generate navigation using zfcrbac zfcuser , hierarchical role strategy
my question same : how generate dynamic navigation, user wich can see links granted access ?
for example when write :
<?php echo $this->navigation('navigation')->menu()->setulclass('nav navbar-nav')?>
in our layout in zf2 without zfcrbac can specify getacl(), setacl(), getrole() , setrole(), gets , sets acl (zend\permissions\acl) zfcrbac didn't work.
spiffy navigation need improved doing that(it's prototype of zf3 navigation). it's not aim of zfcrbac module.
if has solution nice.
Comments
Post a Comment