title: Symfony2 - Assetic - load images in CSS
body: <p>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.</p>
  
  <pre><code> background-image:url(../images/file.png)
  </code></pre>
  
  <p>(with a full path it works)</p>
  
  <p>I installed the assets using the command: <code>assets:install web</code> and i can see the image and css files under <code>web/bundles/cmtcore/(css|images)</code>.</p>
  
  <p>Here's the file structure inside the core bundle:</p>
  
  <pre><code>/CoreBundle
      /Resources
          /public
              /css
                  /main.css
              /images
                  /file.png
  </code></pre>
  
  <p>And here's how I load the css file into the template:</p>
  
  <pre><code> {% stylesheets '@CmtCoreBundle/Resources/public/css/*' %}
          &lt;link rel="stylesheet" type="text/css" media="screen" href="{{ asset_url }}" /&gt;
   {% endstylesheets %}
  </code></pre>
  
  <p>Thank you for your help in advance.</p>