{% javascript could not be added in symfony assetic

this is a simple configuration error that can be solved by adding the bundle in the config.
in the app/config/config.yml file, locate the ‘assetic’ and under that you will see the bundles option – in there add the name of your bundle

bundled: [SomeBundle]

without any quotes around it

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*