Skip to content

Instantly share code, notes, and snippets.

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