Skip to content

Instantly share code, notes, and snippets.

@magickatt magickatt/gist:8427376
Last active Jan 3, 2016

Embed
What would you like to do?
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
You can’t perform that action at this time.