Symfony2 assetic issue

I have been working on sf2 projectfor the last 3 months, when I use assetic without any problems. But now, when calling assetic on a new template, I get the following error Route "_assetic_baa4710.js" does not exist, which can be a workaround:

#config_dev.yml
assetic:
    use_controller: false

and remove the following assetic configuration from routing_dev.yml

#routing_dev.yml
#_assetic:
#    resource: .
#    type:     assetic

Does anyone know what is going on? Thanks a lot !: D

+3
source share
4 answers

I think noisy comment is a solution, it worked for me.

// app/config_dev.yml
assetic:
    use_controller: true
    bundles: ['FooBarBundle']
+1
source

clear the cache and the problem should be fixed.

php app / console cache: clear

0
source

, , ... :

php composer.phar install
php app/console cache:clear
php app/console cache:warmup
0
0

All Articles