Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter URL and CSS
#1

[eluser]spezia 018[/eluser]
HI ,
I am new in CodeIgniter's world. Sorry for my English.
But I have problem with url and css folder.
I have Alek folder and subfolders css,images and System ( CI version 1.7 ).
My example is very simple. I have only one web page. My problem is that CI do not see css folder and css file. But CI see image folder. Look code
Code:
<head>
<link ref="stylelsheet"   type="text/css" href="<?php echo base_url(); ?>css/m.css" >
</head>
<body>
  <img src="&lt;?php echo base_url(); ?&gt;images/slika.jpg" border="0px">
I have picture on the page , but I do not have css style.
In config file, I have
Code:
$config['base_url']    = "http://localhost/Alek";
   $config['index_page'] = "index.php";
When I put this code, in body
Code:
&lt;?php echo base_url(); ?&gt;css/m.css
Page print : http://localhost/Alek/css/m.css
That is ok, but I don't css style. And I don't know why.
I don't have .htaccess file, and I don't want this file. Do I have easier way to get my css style on view page without .htaccess file??
#2

[eluser]Colin Williams[/eluser]
&lt;link rel="stylesheet" ... /&gt;

You have ref, not rel, so your browser doesn't know what to do with it.
#3

[eluser]spezia 018[/eluser]
[quote author="Colin Williams" date="1260336348"]&lt;link rel="stylesheet" ... /&gt;

You have ref, not rel, so your browser doesn't know what to do with it.[/quote]
Yes. That is the problem.
Tnx




Theme © iAndrew 2016 - Forum software by © MyBB