title: How are URLs handled inside the CSS file in CakePHP so they reference the correct location?
body: <p>I am designing a website using CSS Files a lot, but I have several occurrences of background images, images for bullets in lists and I will probably find another need for the css <code>url()</code> function.</p>
  
  <p>But, in cake, all URL should be handled by the <code>Route::url()</code> function, in several ways, being most common the <code>$html-&gt;url()</code></p>
  
  <p>But my problem is that CSS Files are not interpreted by PHP. How I can create a CSS File containing something like: </p>
  
  <pre><code>div.coolbg {
    background-image: url('&lt;?= $html-&gt;url("/img/coolbg.jpg") ?&gt;');
  }
  </code></pre>
  
  <p>See, my last option is to import the css file inline on the layout so it can be interpreted. But I highly prefer to use a more "Cake" approach.</p>
  
  <p>Thanks!</p>