Created
June 30, 2011 16:48
-
-
Save jmcneese/1056641 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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