image - LiipImagineBundle and 'filter not defined' -


i installed liipimaginebundle.

config.yml:

liip_imagine:     filter_sets:         my_thumb:             quality: 75             filters:                 thumbnail: { size: [120, 90], mode: outbound } 

appkernel.php:

    $bundles = array(         ...         new liip\imaginebundle\liipimaginebundle(),     ); 

and when want use filter:

    <td><img src="{{ asset('images/zestawy/'~entity.zdjecie) | imagine_filter('my_thumb') }}" /></td> 

i error:

an exception has been thrown during rendering of template ("filter not defined: my_thumb") 

whats wrong?

have set route in routing.yml?

_imagine:     resource: .     type:     imagine 

also make sure have cleared cache

php app/console cache:clear --env="dev" php app/console cache:clear --env="prod" 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -