Symfony2 CSS images path gets rewritten and I get a 404 Symfony2 CSS images path gets rewritten and I get a 404 symfony symfony

Symfony2 CSS images path gets rewritten and I get a 404


In order to load images in your CSS file the path must be "bundles/(bundle name)/images/(file name)"

UPDATE

make sure you have

write_to: %kernel.root_dir%/../web 

under assetic: in config.yml

and

background: url('/bundles/(bundle name)/images/prev.png') in your css

then run

php app/console assets:install web 

and

php app/console assetic:dump web