我安装了 LiipImagineBundle。
配置.yml:
liip_imagine:
filter_sets:
my_thumb:
quality: 75
filters:
thumbnail: { size: [120, 90], mode: outbound }
应用内核.php:
$bundles = array(
...
new Liip\ImagineBundle\LiipImagineBundle(),
);
当我想使用过滤器时:
<td><img src="{{ asset('images/zestawy/'~entity.zdjecie) | imagine_filter('my_thumb') }}" /></td>
我收到此错误:
An exception has been thrown during the rendering of a template ("Filter not defined: my_thumb")
怎么了?