How to add specific files to assetic?

前端 未结 4 891
滥情空心
滥情空心 2021-02-14 04:53

I have my custom resources directory for my bundle where there are some files:

/longpathtoSymfony/src/MyOwn/Bundle/MyOwnBundle/Resources/public
|-- bootstrap
|           


        
4条回答
  •  长情又很酷
    2021-02-14 05:18

    1. install assets with php app/console assets:install target [--symlink] command

    2. access your font files using asset() twig function:

      asset('bundles/myown/fonts/glyphicons-halflings-regular.ttf')

    * verify your paths for asset function

提交回复
热议问题