Skip to content

Instantly share code, notes, and snippets.

@manuakasam
Created July 26, 2012 09:21
Show Gist options
  • Save manuakasam/3181179 to your computer and use it in GitHub Desktop.
Save manuakasam/3181179 to your computer and use it in GitHub Desktop.
Non working route
<?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