Created
August 8, 2013 07:12
-
-
Save nomaanp/6182259 to your computer and use it in GitHub Desktop.
module.config for Profile module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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