im-richard / Scaffold

Extend, combine and compress CSS
http://github.com/IAMRichardT/Scaffold/wiki
161 stars 19 forks source link

Having trouble with setup #9

Closed manuka-zz closed 14 years ago

manuka-zz commented 14 years ago

Hi I'm having trouble with the initial setup of the scaffold I've followed the basic setup from the wiki but am a little bit stumped.

My file tree looks like this:

myscaffold    index.html
   css
      style.css
   scaffold

The link from index.html is this: link href='scaffold/parse.php?file=css/style.css' rel='stylesheet' type='text/css' (with < /> removed so code swhows up here)

and I have some ipsum text with a container

And in my css file is this:

.container { background-color:yellow; }

So if it is working there should be a yellow background with the container which there isn't, if I call the stylesheet without parsing through the scaffold the background shows up. So I'm a little stumped at present.

I would be interested in writing up a bit more on a through setup walk through if I can get this sorted.

Thanks, Kerry

anthonyshort commented 14 years ago

Try making the path to the CSS file absolute in the url, or adding the path to the CSS file in the $config['load_paths']. This is a list of directories Scaffold can use to find source files.

link href='scaffold/parse.php?file=/myscaffold/css/style.css' rel='stylesheet' type='text/css'