Created
July 26, 2012 09:21
-
-
Save manuakasam/3181179 to your computer and use it in GitHub Desktop.
Non working 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( | |
'router' => array( | |
'routes' => array( | |
'option' => array( | |
'type' => 'Literal', | |
'options' => array( | |
'route' => '/option', | |
'defaults' => array( | |
'__NAMESPACE__' => 'AssetManagement\Controller', | |
'controller' => 'Option', | |
'action' => 'index' | |
) | |
), | |
'may_terminate' => true, | |
'child_routes' => array( | |
'default' => array( | |
'type' => 'Segment', | |
'options' => array( | |
'route' => '/[:controller[/:action[/:id]]]', | |
'constraints' => array( | |
'controller' => '[a-zA-Z][a-zA-Z0-9_-]*', | |
'action' => '[a-zA-Z][a-zA-Z0-9_-]*', | |
'id' => '[0-9]+' | |
), | |
'defaults' => array( | |
'controller' => 'Option' | |
) | |
) | |
) | |
) | |
) | |
), | |
), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment