Skip to content

Instantly share code, notes, and snippets.

@jmcneese
Created June 30, 2011 16:48
Show Gist options
  • Save jmcneese/1056641 to your computer and use it in GitHub Desktop.
Save jmcneese/1056641 to your computer and use it in GitHub Desktop.
Router::connect('/event/:slug/participants/*', array(
'controller' => 'events',
'action' => 'participants'
), array(
'slug' => '[a-zA-Z0-9_-]+',
'pass' => array('slug')
));
// url /event/foo/participants is answered correctly.
// result: paginator links are /events/participants/foo/page:2
// expected: /event/foo/participants/page:2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment