symfony - javascript tags in sf2
世界只因有你
世界只因有你 2017-05-16 16:44:53
0
1
368

An exception has been thrown during the compilation of a template ("You must add SiteHomeBundle to the assetic.bundle config to use the {% javascripts %} tag in SiteHomeBundle::layout.html.twig.") in "SiteHomeBundle::layout.html.twig".

求解……

世界只因有你
世界只因有你

reply all(1)
滿天的星座

/app/config/config.yml There is an asset configuration section

assetic:
    # ...其他配置
    bundles: []

You can comment out the bundles line, or add your bundle:

#bundles: []
#或
bundles: [SiteHomeBundle]
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template