Welcome Guest, Not a member yet? Register   Sign In
Views URL problem.
#1

[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.


Messages In This Thread
Views URL problem. - by El Forum - 02-21-2013, 07:34 AM
Views URL problem. - by El Forum - 02-21-2013, 12:12 PM
Views URL problem. - by El Forum - 02-21-2013, 06:18 PM
Views URL problem. - by El Forum - 02-22-2013, 01:15 AM
Views URL problem. - by El Forum - 02-22-2013, 09:48 AM
Views URL problem. - by El Forum - 02-22-2013, 04:50 PM
Views URL problem. - by El Forum - 02-28-2013, 02:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB