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\'
%
The following works for me:
Create bundle e.g.:
php app/console generate:bundle --namespace=Acme/Bundle/BlogBundle --no-interaction
See: Generating a New Bundle Skeleton
Add Assetic imports as the following:
{% javascripts '@AcmeBlogBundle/Resources/public/js/*' %}
{% endjavascripts %}
Add Bundle to assetic config:
# Assetic Configuration
assetic:
...
bundles: ['AcmeBlogBundle']
...