我有这个链接:
<img src="{{ asset('uploads/gallery/'~ i.imageName ~'' | imagine_filter('my_thumb')) }}" />
路由.yml
_liip_imagine:
resource: "@LiipImagineBundle/Resources/config/routing.xml"
这个 config.yml 用于捆绑
liip_imagine:
resolvers:
default:
web_path: ~
filter_sets:
cache: ~
my_thumb:
quality: 75
filters:
thumbnail: { size: [120, 90], mode: outbound }
但是 symfony 一直给我这个例外:
An exception has been thrown during the rendering of a template ("Parameter "path" for route "liip_imagine_filter" must match ".+" ("" given) to generate a corresponding URL.") in VdvTimesheetsBundle:Timesheets:show_image.html.twig at line 16.
有人知道这有什么问题吗?
谢谢!