Welcome Guest, Not a member yet? Register   Sign In
The style sheet for a view page can't be separated in an Includes folder?
#41

[eluser]alvaroeesti[/eluser]
I of course removed the import, right after I read your post.

Of course I know that is relative, how else could I have figured out its path and described it as I did if I did not know it was relative.

In this longest thread, several times longest thread of my life, we already talked about absolute path (taking as reference the root) and the relative path (taking as reference the parent or calling file), so the concepts are clear. What is wrong with a relative path?

Both absolute and relative are working now.

The only thing left, but unneeded, is in setting it through the base_url function. What you provided as

Code:
<link href="<?php echo base_url('css/style.css'); ?>" rel="stylesheet" type="text/css" />

was also provide by Cronix, and I could not make it work

and the other you provided, which was also provided by Cronix

Code:
<link href="/CI/css/style.css" rel="stylesheet" type="text/css" />

did work last night in the end and today of course.


So, relative works fine. Absolute now too. What does not work yet is the

Code:
<link href="<?php echo base_url('css/style.css'); ?>" rel="stylesheet" type="text/css" />

but that will be due to some url helper not properly placed or so.

So, 2 out of 3 options work. One absolute and one relative, it is fine

tnx

A




Theme © iAndrew 2016 - Forum software by © MyBB