Skip to content

Instantly share code, notes, and snippets.

@AlexTiTanium
Created November 25, 2012 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexTiTanium/4143973 to your computer and use it in GitHub Desktop.
Save AlexTiTanium/4143973 to your computer and use it in GitHub Desktop.
catalog:
patterns: '/catalog/{:path}'
params:
path: '(.*)'
values:
application: 'site'
controller: 'shop'
action: 'catalog'
admin:
patterns: '/admin'
extend: 'default'
values:
application: 'admin'
controller: 'home'
type: 'json'
default:
patterns:
- '{:controller}/{:action}/{:event}-{:id}'
- '{:controller}/{:action}/{:event}-{:id}.{:type}'
- '{:controller}/{:action}/{:event}.{:type}'
- '{:controller}/{:action}/{:event}'
- '{:controller}/{:action}.{:type}'
- '{:controller}/{:action}'
- '{:controller}.{:type}'
- '{:controller}'
params:
controller: '([a-zA-Z0-9-]+)'
action: '([a-zA-Z0-9-]+)'
event: '([a-zA-Z0-9-]+)'
id: '([a-zA-Z0-9-]+)'
type: '(html|json)'
values:
application: 'site'
controller: 'home'
type: 'html'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment