Where to add guard config information of zfc-rbac?

278 views Asked by At

I am following this guide to add Zfc-Rbac in my application. But I can't figure out where to put this configuration information.

Application\config\application.config.files

or Application\modules\modulename\config\module.config.php

2

There are 2 answers

0
lumberjacked On

Either in application/module or application/vendor, place the config inside the ModuleName/config/module.config.php

Also make sure you have added the ZfcRbac to the application module list

'modules' => array(
    'Application',
    'ZfcRbac',
    'DoctrineModule',
    'DoctrineORMModule'
0
jmleroux On

You can also put it in a global config file, ie application/config/autoload/zfcrbac.global.php