Skip to content

Instantly share code, notes, and snippets.

@nclundsten
Created February 27, 2014 21:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nclundsten/9259710 to your computer and use it in GitHub Desktop.
Save nclundsten/9259710 to your computer and use it in GitHub Desktop.
<?php
return array(
'service_manager' => array(
'factories' => array(
'rbac_navigation' => 'Authorize\NavigationGroupsFactory',
'navigation_primary' => 'Zend\Navigation\Service\DefaultNavigationFactory',
'navigation_secondary' => 'Pledgevine\Navigation\Service\SecondaryNavigationFactory',
),
),
'navigation' => array(
'groups_child_template' => array(
'label' => '', //groupname set with service
'uri' => '#',
),
'group_template' => array(
'uri' => '#',
'pages' => array(
'admin' => array(
'name' => 'admin',
'uri' => '#',
'pages' => array(
'fundraisers' => array(
'name' => 'fundraisers',
'label' => 'Fundraisers List',
'route' => 'group/fundraisers',
'rbac_roles' => array()//will be set with service),
),
'member-permissions' => array(
'name' => 'member-permissions',
'label' => 'Member Permissions',
'route' => 'group/member-permissions',
'rbac_roles' => array()//will be set with service),
),
'group-settings' => array(
'name' => 'group-settings',
'label' => 'Organization Settings',
'route' => 'group/group-settings',
'rbac_roles' => array()//will be set with service),
),
'pledge-post' => array(
'name' => 'pledge-post',
'label' => 'Post A Pledge',
'route' => 'group/pledge-post',
'rbac_roles' => array()//will be set with service),
),
'pledge-listing' => array(
'name' => 'pledge-listing',
'label' => 'Pledges We\'ve Posted',
'route' => 'group/pledge-listing',
'rbac_roles' => array()//will be set with service),
),
'revenue-management' => array(
'name' => 'revenue-management',
'label' => 'Revenue Management',
'route' => 'group/revenue-management',
'rbac_roles' => array()//will be set with service),
),
),
),
'member' => array(
'name' => 'member',
'uri' => '#',
'pages' => array(
'group-member-settings' => array(
'name' => 'group-member-settings',
'label' => 'Member Settings',
'route' => 'group/group-member-settings',
'rbac_roles' => array()//will be set with service),
),
'group-quit' => array(
'name' => 'group-quit',
'label' => 'Quit Organization',
'route' => 'group/group-quit',
'rbac_roles' => array()//will be set with service),
),
),
),
),
),
'default' => array(
'col1' => array(
'name' => 'col1',
'uri' => 'col1',
'pages' => array(
'main' => array(
'name' => 'main',
'controller' => 'info',
'pages' => array(
array(
'label' => "Today's Top Pledges",
'controller' => 'pledge',
'action' => 'featured',
'rbac_roles' => array('guest', 'user'),
),
array(
'label' => 'Top Fundraisers',
'controller' => 'info',
'action' => 'featured',
'rbac_roles' => array('guest', 'user'),
),
array(
'label' => 'Help Center',
'uri' => 'somelinktozenbox',
'rbac_roles' => array('guest', 'user'),
),
),
),
'account' => array(
'label' => 'Account',
'name' => 'account',
'controller' => 'home',
'pages' => array(
array(
'label' => 'Login',
'controller' => 'zfcuser',
'action' => 'login',
'rbac_roles' => array('guest'),
),
array(
'label' => 'Affiliations',
'controller' => 'account',
'action' => 'affiliations',
'rbac_roles' => array('user'),
),
array(
'label' => "Pledges I've Made",
'controller' => 'pledge',
'action' => 'pledges',
'rbac_roles' => array('user'),
),
array(
'label' => 'Profile and Photo',
'controller' => 'account',
'action' => 'profile',
'rbac_roles' => array('user'),
),
array(
'label' => 'My Social Networks',
'controller' => 'account',
'action' => 'social-networks',
'rbac_roles' => array('user'),
),
array(
'label' => 'My Tax Deductions',
'controller' => 'account',
'action' => 'report-tax-deductions',
'rbac_roles' => array('user'),
),
),
),
'organizations' => array(
'label' => 'Organizations',
'name' => 'organizations',
'uri' => 'orgs',
'pages' => array(
array(
'label' => 'Add an Organization',
'route' => 'groups/group-add',
'rbac_roles' => array('user'),
'showInPrimaryNav' => 3,
),
array(
'label' => 'Join an Organization',
'route' => 'groups/group-join',
'rbac_roles' => array('user'),
'showInPrimaryNav' => 3,
),
),
),
) //default['pages']
),
),
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment