views:

56

answers:

1

Hi guys,

is there any CSS parser in the CodeIgniter Framework? If not: Where should I store my PHP file for parsing css (neat solution)? In the webroot?

A: 

Since everything is displayed from the root directory (index.php) there is no need to put the url in the CSS file as you can have it relative to the root directory.

Kieran Andrews
If I access my site via mydomain.tld/index.php, all works fine. But if I use mydomain.tld/controller/subsite the relative path doesn't work
daniel
The images in a CSS file are relative to the directory the CSS file is in.
Kieran Andrews