Skip to content

Instantly share code, notes, and snippets.

@awartoft
Created June 30, 2012 14:21
Show Gist options
  • Save awartoft/3023909 to your computer and use it in GitHub Desktop.
Save awartoft/3023909 to your computer and use it in GitHub Desktop.
<?php
return array(
'home' => array(
'type' => 'literal',
'options' => array(
'route' => '/',
'defaults' => array(
'controller' => 'index',
'action' => 'index',
),
),
),
'admin' => array(
'type' => 'literal',
'options' => array(
'route' => '/admin',
'defaults' => array(
'controller' => 'index',
'action' => 'admin',
),
),
'may_terminate' => false,
'child_routes' => array(
'article' => array(
'type' => 'Zend\Mvc\Router\Http\Literal',
'options' => array(
'route' => '/nyheter',
),
'may_terminate' => false,
'child_routes' => array(
'write' => array(
'type' => 'Zend\Mvc\Router\Http\Literal',
'options' => array(
'route' => '/admin/nyheter/skriv',
'defaults' => array(
'controller' => 'article',
'action' => 'rss',
)
)
),
'edit' => array(
'type' => 'Zend\Mvc\Router\Http\Literal',
'options' => array(
'route' => '/rss',
'defaults' => array(
'controller' => 'article',
'action' => 'rss',
)
)
)
)
)
)
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment