tags:

views:

40

answers:

1

I need to keep all images, css, etc in one folder structure and all code in another. I'm trying to get the src paths right and just cannot do it.

I have css in the following structure: /public/content/*.css and all project code in this: /protected/Code/... And public and protected are in the same folder.

How do I use the public resource in the protected projects?

Cheers,

A: 

This sounds like something where you need relative path names. For instance, if you are inside folder/protected/Code and you need to access folder/public/content/main.css, you would use the path ../../public/content/main.css

Inside folder/protected/Code, .. refers to folder/protected, and ../.. refers to folder.

Michael Dillon
In the end I just had both projects running, and referenced the files I needed using http://.... That way I can share some data between projects.
Arnej65