Welcome Guest, Not a member yet? Register   Sign In
access main directory, how?
#3

[eluser]John_Betong[/eluser]
[quote author="snaggy" date="1187794897"]Here's my problem: in my view file to import for example css I write
...
...
...
bye[/quote]

Hi Snaggy,

With directories and paths I have found that immediately before the code which sets the path I write the following line of code to find out where I am.
Code:
<?= getcwd(); die; ?>
 
 
I have also just started using the following code in my main view file and I think it will simplify my bundled images, css, java files, etc. The files will be specific to each individual application.
[code]
<html>
<head>

<base href="http://localhost/ci_application/" />

</head>
 
Give it a try and let us know how you get on.

Cheers,

John_Betong
 


Messages In This Thread
access main directory, how? - by El Forum - 08-22-2007, 04:01 AM
access main directory, how? - by El Forum - 08-22-2007, 12:31 PM
access main directory, how? - by El Forum - 08-22-2007, 11:28 PM



Theme © iAndrew 2016 - Forum software by © MyBB