Skip to content

Instantly share code, notes, and snippets.

@Doopin
Created January 6, 2015 04:26
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 Doopin/cdd5c84af3b4b048009c to your computer and use it in GitHub Desktop.
Save Doopin/cdd5c84af3b4b048009c to your computer and use it in GitHub Desktop.
'home' => array(
'type' => 'literal',
'options' => array(
'route' => '/project[/:project_id]/project-item',
'defaults' => array(
'controller' => 'Item\Controller\Index',
'action' => 'index',
),
'constraints' => array(
'project_id' => '[0-9]+'
)
),
'may_terminate' => true,
'child_routes' => array(
'details' => array(
'type' => 'literal',
'options' => array(
'route' => '/details',
'defaults' => array(
'action' => 'details'
),
'constraints' => array(
'project_id' => '[0-9]+'
)
),
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment