I am trying to link a css file (which lives in a package) inside a branch template:
{% stylesheets '@AcmeFooBundle/Resources/public/css/bootstrap.min.css' %} <link href="{{ asset_url }}" rel="stylesheet"/> {% endstylesheets %}
The first error message I get:
You must add AcmeFooBundle to the assetic.bundle configuration ...
This is config:
# Assetic Configuration assetic: debug: %kernel.debug% use_controller: false bundles: []
Then I try to add AcmeFooBundle to the bundles directive, but then I get an error:
Unable to find file ....
I can't understand what I'm doing wrong here ...
Resetting the default configurations to the console configuration in the console (using php app / console config: dump-reference assetic ) I see the AcmeFooBundle package specified in the packages directive ...
symfony assetic
Nikos Apr 29 '12 at 23:35 2012-04-29 23:35
source share