I have a CoreBundle that contains main css files and images. Now I have a problem when I load an image from css; the image isn\'t shown.
background-image:ur
use the cssrewrite
filter from Assetic bundle
In config.yml:
assetic:
debug: %kernel.debug%
use_controller: false
filters:
cssrewrite: ~
And then call your stylesheets like this:
{% stylesheets 'bundles/cmtcore/css/*' filter='cssrewrite' %}
{% endstylesheets %}
Oh and don't forget to use php app/console assetic:dump