Skip to content

Instantly share code, notes, and snippets.

@caefer
Created September 21, 2010 19:45
Show Gist options
  • Save caefer/590383 to your computer and use it in GitHub Desktop.
Save caefer/590383 to your computer and use it in GitHub Desktop.
sf_image:
class: sfImageTransformRoute
url: /thumbnails/:type/:format/:path/:slug-:id.:sf_format
param: { module: sfImageTransformator, action: index, attribute: file }
requirements:
format: '[\w_-]+'
path: '[\w/]+'
slug: '[\w_-]+'
id: '\d+(?:,\d+)?'
sf_format: 'gif|png|jpg'
sf_method: [ get ]
options:
image_source: Doctrine # or Propel
segment_separators: [ '/', '.', '-' ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment