I've found on the web a way to declare a custom Navigation Menu using the following:
module.config.php
in Acl
module:
'navigation_helpers' => array(
'invokables' => array(
'menu' => 'Acl\View\Helper\Navigation\Menu',
)
),
Now I'd like to pass a parameter to the custom Menu
constructor. I'm quite new in ZF2 world but it seems that I have to create some kind of service in the module.php
file. I've tried to put code into getServiceConfig
and getViewHelperConfig
methods without success (the custom menu is not "used").
Any idea/hint of the array structure and the method I should use?
Thanks a lot,