Skip to content

Instantly share code, notes, and snippets.

@manuakasam
Created February 17, 2014 10:47
Show Gist options
  • Select an option

  • Save manuakasam/9048458 to your computer and use it in GitHub Desktop.

Select an option

Save manuakasam/9048458 to your computer and use it in GitHub Desktop.
'router' => [
'routes' => [
'sam-rfc' => [
'type' => 'Zend\Mvc\Router\Http\Literal',
'options' => [
'route' => '/sam-rfc',
'defaults' => [
'controller' => 'SamRfc\Controller\IndexController',
'action' => 'index'
]
],
'may_terminate' => true,
'child_routes' => [
'add' => [
'type' => 'Zend\Mvc\Router\Http\Literal',
'options' => [
'route' => '/add',
'defaults' => [
'controller' => 'SamRfc\Controller\InsertController',
'action' => 'insert'
]
]
],
'view' => [
'type' => 'Zend\Mvc\Router\Http\Segment',
'options' => [
'route' => '/details/:rfc',
'defaults' => [
'controller' => 'SamRfc\Controller\ViewController',
'action' => 'displaySingle'
]
]
],
'approve' => [
'type' => 'Zend\Mvc\Router\Http\Segment',
'options' => [
'route' => '/approve/:rfc',
'defaults' => [
'controller' => 'SamRfc\Controller\ApprovalController',
'action' => 'displaySingle'
]
]
],
'disapprove' => [
'type' => 'Zend\Mvc\Router\Http\Segment',
'options' => [
'route' => '/disapprove/:rfc',
'defaults' => [
'controller' => 'SamRfc\Controller\DisapprovalController',
'action' => 'displaySingle'
]
]
],
'disable' => [
'type' => 'Zend\Mvc\Router\Http\Segment',
'options' => [
'route' => '/disable/:rfc',
'defaults' => [
'controller' => 'SamRfc\Controller\DisableController',
'action' => 'displaySingle'
]
]
]
]
]
]
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment