Welcome Guest, Not a member yet? Register   Sign In
CSS and javascript links
#1

[eluser]Unknown[/eluser]
Hello everybody !
I am discovering Code Igniter, it seems really nice but I'm turning crazy with the integration of CSS : it won't work !

My folders are organized as follows :
Code:
/
|system |Application
        |the rest...

|static |css -> common.css
             -> menu.css

        |js  -> some js stuff
I've read a lot of things here and on Google, and if I have well understood, I should access my stylesheets with :
Code:
href="<?php echo base_url(); ?>static/css/common.css"

Here is my header.php :

Code:
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url(); ?>static/css/common.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url(); ?>static/css/menu.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url(); ?>static/css/<?php echo  $page; ?>.css" />

    [removed] [removed]
    [removed][removed]
  </head>

My base_url is set to http://localhost/bdac_real/ as code igniter is put in /srv/http/bdac_real

With all that, the page http://localhost/bdac_real/index.php/conferences works fine but with no css and no javascript.

Can you see what I did wrong ?

Thank you.

PS : I'm using Archlinux and PHP5


Messages In This Thread
CSS and javascript links - by El Forum - 07-19-2010, 05:30 PM
CSS and javascript links - by El Forum - 07-19-2010, 05:43 PM
CSS and javascript links - by El Forum - 07-19-2010, 07:13 PM
CSS and javascript links - by El Forum - 07-20-2010, 05:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB