Last active
July 25, 2016 19:22
-
-
Save ppeiris/e914174ffc8677fbf98ffe7873d957a7 to your computer and use it in GitHub Desktop.
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( | |
'factories' => array( | |
LoginController::class => LoginControllerFactory::class, | |
), | |
// 'invokables' => array( | |
// 'Login\Controller\Login' => 'Login\Controller\LoginController', | |
// ), | |
), | |
// The following section is new and should be added to your file | |
'router' => array( | |
'routes' => array( | |
'login' => array( | |
'type' => 'segment', | |
'options' => array( | |
'route' => '/login[/:action][/:id]', | |
'constraints' => array( | |
'action' => '[a-zA-Z][a-zA-Z0-9_-]*', | |
'id' => '[0-9]+', | |
), | |
'defaults' => array( | |
'controller' => 'Login\Controller\Login', | |
'action' => 'index', | |
), | |
), | |
), | |
), | |
), | |
'view_manager' => array( | |
'template_path_stack' => array( | |
'login' => __DIR__ . '/../view', | |
), | |
), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment