Skip to content

Instantly share code, notes, and snippets.

@nomaanp
Created August 8, 2013 07:12
Show Gist options
  • Save nomaanp/6182259 to your computer and use it in GitHub Desktop.
Save nomaanp/6182259 to your computer and use it in GitHub Desktop.
module.config for Profile module
<?php
return array(
'controllers' => array(
'invokables' => array(
'Profile' => 'Profile\Controller\ProfileController',
),
),
'router' => array(
'routes' => array(
'profile' => array(
'type' => 'segment',
'options' => array(
'route' => '/profile',
'defaults' => array(
'controller' => 'Profile',
'action' => 'index1',
),
),
'may_terminate' => true,
'child_routes' => array(
'edit' => array(
'type' => 'Segment',
'options' => array(
'route' => '/edit[/:id]',
'constraints' => array(
'id' => '[0-9]+',
),
'defaults' => array(
'controller' => 'Profile',
'action' => 'edit'
),
),
),
), ),
),
),
'view_manager' => array(
'template_path_stack' => array(
'profile' => __DIR__ . '/../view',
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment