Skip to content

Instantly share code, notes, and snippets.

@caefer
Created August 19, 2010 12:36
Show Gist options
  • Save caefer/537776 to your computer and use it in GitHub Desktop.
Save caefer/537776 to your computer and use it in GitHub Desktop.
sf_image_barfooarticle_top:
class: sfImageTransformRoute
url: /thumbnails/:format/:slug-top-:id.:sf_format
param: { module: sfImageTransformator, action: index, type: BarfooArticle, attribute: topImage }
requirements:
format: '[\w_-]+'
slug: '[\w_-]+'
id: '\d+(?:,\d+)?'
sf_format: 'gif|png|jpg'
sf_method: [ get ]
options:
image_source: Doctrine
segment_separators: [ '/', '.', '-' ]
sf_image_barfooarticle_center:
class: sfImageTransformRoute
url: /thumbnails/:format/:slug-center-:id.:sf_format
param: { module: sfImageTransformator, action: index, type: BarfooArticle, attribute: topImage }
requirements:
format: '[\w_-]+'
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