0
我正在尝试使用Assetic来包含我的基础CSS和js资产,这些资产并未捆绑在一起。他们位于MySymfonyApp/app/Resources/public/css/
和MySymfonyApp/app/Resources/public/js/
。包括不在捆绑中的symfony基础资产
我在base.html.twig
模板下面,但我发现404
{% stylesheets '%kernel.root_dir%/Resources/public/css/*' %}
<link href="{{ asset_url }}" type="text/css" rel="stylesheet" />
{% endstylesheets %}
{% javascripts
'%kernel.root_dir%/Resources/public/js/jQuery.js'
'%kernel.root_dir%/Resources/public/js/*' %}
<script src="{{ asset_url }}"></script>
{% endjavascripts %}
我也试着用同样的结果如下。
{% stylesheets '../app/Resources/public/css/*' %}
<link href="{{ asset_url }}" type="text/css" rel="stylesheet" />
{% endstylesheets %}
我如何引用未绑定的资产?