Hello,
Found a hoster that allows URL rewriting
Next step, using a CSS file.
With CI living under /igniter (/public_html/igniter when connecting through FTP), I tried the following things to use a stylesheet, but they don’t work, ie. the CSS file seems to be ignored:
- uploaded style.css in ./views, and used this in view file:
<meta http-equiv=“content-type” content=“text/html; charset=iso-8859-1”>
<link href=“style.css” type=“text/css”>
- created /public_html/igniter/css/, uploaded style.css there, and used this:
<meta http-equiv=“content-type” content=“text/html; charset=iso-8859-1”>
<link href=”/public_html/igniter/css/style.css” type=“text/css”/>
- did this:
<link type=“text/css” href=”<?php base_url(); ?>/css/style.css” />
but I get this:
 Fatal error: Call to undefined function: base_url() in /public_html/igniter/system/application/views/mainview.php on line 9
Is it because of the URL rewriting in .htaccess? What do you recommend to use CSS in CI?
Thank you.
PS : And if you know why I get “” as the very first characters when the page is displayed, I’m interested.
