Skip to content

Instantly share code, notes, and snippets.

@ezimuel
Forked from pensiero/gist:b3e330768f306bccbca4
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ezimuel/cac1059ad29f9139a22a to your computer and use it in GitHub Desktop.
Save ezimuel/cac1059ad29f9139a22a to your computer and use it in GitHub Desktop.
'album' => array(
'type' => 'Segment',
'options' => array(
'route' => '/album[/:page]',
'constraints' => array(
'page' => '[0-9]+',
),
'defaults' => array(
'controller' => 'album',
'action' => 'list',
),
),
'may_terminate' => true,
'child_routes' => array(
'single' => array(
'type' => 'Segment',
'options' => array(
'route' => '/:title{-}-:id',
'constraints' => array(
'title' => '[a-zA-Z0-9_-]*',
'id' => '[0-9]+',
),
'defaults' => array(
'action' => 'index',
),
),
),
),
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment