How do I fix "Add myBundle to the asseticBundle config" symfony2 exception?
Yes I tried and it solved the issue for me. For someone (like me) who doesn't know initially how to add then just:
- edit
app/config/config.yml
- then go to
assetic:
- under assetic: go to
bundles: []
- and in
bundles: []
//type your bundle name
for instance if your bundle is Acme\DemoBundle
, then do the following
assetic:
bundles: [ AcmeDemoBundle ]
No quotes around AcmeDemoBundle
. That's it. (Symfony2)
If you want assetic to include your bundles by default, you can comment (with #) the line bundles: []
ex:
assetic:
debug: "%kernel.debug%"
use_controller: false
#bundles: [ ]
#java: /usr/bin/java