Skip to content

Instantly share code, notes, and snippets.

@TomHAnderson
Created November 15, 2012 19:33
Show Gist options
  • Save TomHAnderson/4080702 to your computer and use it in GitHub Desktop.
Save TomHAnderson/4080702 to your computer and use it in GitHub Desktop.
Default Routing
'router' => array(
'routes' => array(
'default' => array(
'type' => 'Zend\Mvc\Router\Http\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(
'controller' => 'index',
'action' => 'index',
),
),
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment