使用此标记时,Assetic不能很好地工作:
{% stylesheets output='/style/app.css'
'@VendorBundle/Resources/style/main.css'
%}
<link rel="stylesheet" href="{{ asset_url }}"/>
{% endstylesheets %}
Run Code Online (Sandbox Code Playgroud)
如果我使用它,就像Assetic不知道如何处理它.在config_dev中use_controller是真的.我找不到我做错了什么.我得到这个:
在呈现模板期间抛出异常("无法生成指定路由的URL"_assetic_aca6c7a_0",因为此类路由不存在.")在"VendorBundle:Section:template.html.twig"中.
也许有些缓存问题?我不知道我能尝试什么......