Skip to content

Instantly share code, notes, and snippets.

@toopay
Created October 23, 2012 12:47
Show Gist options
  • Save toopay/3938558 to your computer and use it in GitHub Desktop.
Save toopay/3938558 to your computer and use it in GitHub Desktop.
Three level path router
# Default route rule
default:
controller: \App\ActionController
arguments:
- '/^[a-zA-Z]+$/'
action:
controller: \App\ActionController
arguments:
- '/^[a-zA-Z]+$/'
- '/^[a-zA-Z0-9_:@\-\s]+$/'
detail:
controller: \App\ActionController
arguments:
- '/^[a-zA-Z]+$/'
- '/^[a-zA-Z0-9_:@\-\s]+$/'
- '/^[0-9]+$/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment