Last active
December 20, 2015 14:49
-
-
Save jeffery/6149382 to your computer and use it in GitHub Desktop.
ZfcUser Route
This file contains 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 ( | |
'Account\Controller\Index' => 'Account\Controller\IndexController', | |
), | |
), | |
// The following section is new and should be added to your file | |
'router' => array ( | |
'routes' => array ( | |
'account' => array ( | |
'type' => 'segment', | |
'options' => array ( | |
'route' => '/account[/][:action][/:id]', | |
'constraints' => array ( | |
'action' => '[a-zA-Z][a-zA-Z0-9_-]*', | |
), | |
'defaults' => array ( | |
'controller' => 'Account\Controller\Index', | |
'action' => 'index', | |
), | |
), | |
), | |
'zfcuser' => array ( | |
'options' => array ( | |
'route' => '/account', | |
), | |
), | |
), | |
), | |
'view_manager' => array ( | |
'template_path_stack' => array ( | |
'account' => __DIR__ . '/../view', | |
), | |
), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment