Heyall,
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 url()
function.
But, in cake, all URL should be handled by the Route::url()
function, in several ways, being most common the $html->url()
But my problem is that CSS Files are not interpreted by PHP. How I can create a CSS File containing something like:
div.coolbg {
background-image: url('<?= $html->url("/img/coolbg.jpg") ?>');
}
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.
Thanks!