Skip to content

Instantly share code, notes, and snippets.

@magickatt
Last active January 3, 2016 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save magickatt/8427376 to your computer and use it in GitHub Desktop.
Save magickatt/8427376 to your computer and use it in GitHub Desktop.
Sample segment route configuration in Zend Framework 2
<?php
return array(
'router' => array(
'routes' => array(
'somewhere' => array(
'type' => 'segment',
'options' => array(
'route' => '/company/edit/[/:id]',
),
'defaults' => array(
'controller' => 'Application\Controller\Company',
'action' => 'edit',
),
),
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment