Skip to content

Instantly share code, notes, and snippets.

@rufinus
Created February 7, 2013 12:36
Show Gist options
  • Select an option

  • Save rufinus/4730639 to your computer and use it in GitHub Desktop.

Select an option

Save rufinus/4730639 to your computer and use it in GitHub Desktop.
return array(
'router' => array(
'routes' => array(
'admin' => array(
'type' => 'Segment',
'options' => array(
'route' => '/admin[/[:controller[/[:action]]]]',
'constraints' => array(
'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
'action' => '[a-zA-Z][a-zA-Z0-9_-]*'
),
'defaults' => array(
'__NAMESPACE__' => 'Admin\Controller',
'controller' => 'Index',
'action' => 'index',
),
),
'may_terminate' => true,
'child_routes' => array(
'default' => array(
'type' => 'Wildcard',
'options' => array(
)
)
)
),
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment