我安装了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(),
);当我想使用filter时:
<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")怎么了?
发布于 2013-04-18 16:50:50
你在你的routing.yml中设置路由了吗?
_imagine:
resource: .
type: imagine另外,请确保已清除缓存
php app/console cache:clear --env="dev"
php app/console cache:clear --env="prod"https://stackoverflow.com/questions/16078405
复制相似问题