peris
peris

Reputation: 953

Symfony2 Assetic issue

i'm working on a sf2 project for last 3 months where i've been using assetic without problems. But now, when calling assetic on a new template i get de following error Route "_assetic_baa4710.js" does not exist which can be workaround by:

#config_dev.yml
assetic:
    use_controller: false

and removing the following assetic config from routing_dev.yml

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

Does any one knows what's going on? Thx a lot! :D

Upvotes: 3

Views: 2584

Answers (4)

Ahad Ali
Ahad Ali

Reputation: 418

Do a cache clean using

rm -rf apps/cache

Assetic - Route "_assetic_001d5b7_0" does not exist

Upvotes: 0

augustocosta
augustocosta

Reputation: 139

maybe is too late but... what worked for me:

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

Upvotes: 0

Stoked PHP Engineer
Stoked PHP Engineer

Reputation: 367

I believe noisebleed's comment is the solution, it worked for me.

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

Upvotes: 1

Irinel
Irinel

Reputation: 9

do a cache clear and problem should fix

php app/console cache:clear

Upvotes: 0

Related Questions