Created
March 11, 2014 21:00
-
-
Save fuel-wlightning/9494965 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( | |
'router' => array( | |
'routes' => array( | |
// The following is a route to simplify getting started creating | |
// new controllers and actions without needing to create a new | |
// module. Simply drop new controllers in, and you can access them | |
// using the path /application/:controller/:action | |
'approute' => array( | |
'type' => 'Literal', | |
'options' => array( | |
'route' => '/application', | |
'defaults' => array( | |
'__NAMESPACE__' => 'Application\Controller', | |
'controller' => 'index', | |
'action' => 'index', | |
), | |
), | |
'may_terminate' => true, | |
'child_routes' => array( | |
'default' => array( | |
'type' => 'Segment', | |
'options' => array( | |
'route' => '/[:controller[/:action]]', | |
'constraints' => array( | |
'controller' => '[a-zA-Z][a-zA-Z0-9_-]*', | |
'action' => '[a-zA-Z][a-zA-Z0-9_-]*', | |
), | |
'defaults' => array( | |
'__NAMESPACE__' => 'Application\Controller', | |
'controller' => 'index', | |
'action' => 'index', | |
), | |
), | |
), | |
), | |
), | |
), | |
), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment