Assetic unable to find file

后端 未结 3 1545
天涯浪人
天涯浪人 2021-02-07 16:12

I am trying to link a css file (that lives in a bundle) inside a twig template :

{% stylesheets 
    \'@AcmeFooBundle/Resources/public/css/bootstrap.min.css\' 
%         


        
3条回答
  •  佛祖请我去吃肉
    2021-02-07 16:47

    I had this same issue and elnur's suggestion worked. Here's my assetic config for your reference

    # Assetic Configuration
    assetic:
        debug:          %kernel.debug%
        use_controller: false
        #bundles:        [ ]
        #java: /usr/bin/java
        filters:
            cssrewrite: ~
            #closure:
            #    jar: %kernel.root_dir%/Resources/java/compiler.jar
            yui_css:
                jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar"
            yui_js:
                jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar"
    

提交回复
热议问题