我正在使用LiipImagineBundle
我已按照文档中的安装说明进行操作
在 AppKernel.php 中
new Liip\ImagineBundle\LiipImagineBundle(),
并在 routing.yml
# app/config/routing.yml
_imagine:
resource: .
type: imagine
在 config.yml
#app/config/config.yml
liip_imagine:
filter_sets:
image_upload_thumbnail:
quality: 85
filters:
thumbnail: { size: [150, 150], mode: outbound }
在我的树枝文件中
<img alt="{{ media.title|default('untitled') }}" src="{{ media.getWebPath | imagine_filter('image_upload_thumbnail') }}"/>
我收到这个错误
An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route "_imagine_image_upload_thumbnail" as such route does not exist.")
我尝试过的:
- 缓存清除
- php 应用程序/控制台路由器:调试 | grep 想象没有找到
- 路线不存在且未注册
- 验证我有
media/cache
具有正确权限的文件夹