为了账号安全,请及时绑定邮箱和手机立即绑定

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".

正在回答

1 回答

问题解决了,看了洪老师回答其他同学的类似的提问,非常感谢!

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

symfony 输出css异常

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信