[eluser]JackU[/eluser]
My application will do 2 things.
1. Build a website and output it to be displayed in browser.
2. Build a website and output it to a zip (to be unzipped and displayed as a static page).
My Views have this structure (like a template).
Views/Blueish/index.php
Views/Redish/index.php
The actual view file kind of looks like this:
<html>
<head>
<link rel="stylesheet" href="css/style.css" type="text/css" />
</head>
Now you probobly see my problem. In case 2 (where i build and zipp it). It works fine (the css stuff is also included in the zip).
But in case 1 when i just load the view and display in the css path is wrong.
So what is the best way to solve this? I really like my directory structure in the Views folder...it is easy maintained and very easy to add new "templates". So i don´t wan´t to change that.
Thanx in advance.