symfony 輸出css異常
<head>
??????? <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
??????? <title>
??????????? {% block title %}
??????????? {% endblock%}
??????? </title>
??????? {% block global_css %}
??????????? {% stylesheets
??????????????????? '@ShopWebBundle/Resources/public/css/*'
??????????? %}
??????????? <link rel="stylesheet" href="{{ asset_url }}" />
??????????? {% endstylesheets %}
??????? {% endblock %}
??????? {% block my_css %}
??????? {% endblock %}
??????? {% block global_js %}
??????? {% endblock %}
??????? {% block my_js %}
??????? {% endblock %}
??? </head>
為什么我會報下面異常,求洪老師指教!
An exception has been thrown during the compilation of a template ("You must add ShopUserBundle to the assetic.bundle config to use the {% stylesheets %} tag in ShopUserBundle::loginlayout.html.twig.") in "D:\php_env\htdocs\sfshop\src\Shop\Bundle\UserBundle/Resources/views/loginlayout.html.twig".
2016-02-21
問題解決了,看了洪老師回答其他同學的類似的提問,非常感謝!