Welcome Guest, Not a member yet? Register   Sign In
How to Use 960 Grid System with CodeIdniter
#1

[eluser]ludo31[/eluser]
Hello I try to use 960 Grid System in CodeIgniter
My folder is like This : the principal folder CodeIgniter:

CodeIgniter
|
-application
|_Controller
|_View
|_Model
|_css
-system

in Controller folder I have : a file : site.php
in view : accueil.php
but when I try to insert the 960 grid in view file it doesn't hork even if I load the url

Code:
<?php

/*
* Controlleur
*/

class Site extends CI_Controller
{

    public function __construct()
    {
        parent::__construct();
    }


    public function index()
    {
        
        $this->load->view('accueil');
        
    }


    
}
?>


view file



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
&lt;html&gt;
&lt;head&gt;




&lt;link rel="stylesheet" type="text/css" media="all" href="&lt;?php echo base_url();?&gt; ../css/reset.css" /&gt;
&lt;link rel="stylesheet" type="text/css" media="all" href="&lt;?php echo base_url();?&gt;../css/text.css" /&gt;
&lt;link rel="stylesheet" type="text/css" media="all" href="&lt;?php echo base_url();?&gt;../css/960.css" /&gt;







&lt;/head&gt;
&lt;body&gt;

<div class="container_12">

<h2>

grid coulum 12
</h2>

<div class="grid_12">

<p>
940
</p>




</div>









</div>





&lt;/body&gt;
&lt;/html&gt;


remark at the link : I use
Code:
../css/text.css
I hope it's correct .
I also try to take css folder out of application in the same folder than system
so I change link like this :

Code:
../../css/text.css

but it doesn't work !! but When I try to a new file in desktop and make 960 grid system in the same it works !!
does anyone know what's the problem ??

thanks
#2

[eluser]CroNiX[/eluser]
/application and /system directories are not accessible via the url for security reasons.

CodeIgniter
|
-application
|_Controller
|_View
|_Model
-system
-css
-images
-js

Code:
&lt;link rel=“stylesheet” type=“text/css” media=“all” href=”&lt;?php echo base_url();?&gt;css/reset.css” /&gt;
#3

[eluser]ludo31[/eluser]
[quote author="CroNiX" date="1329519850"]/application and /system directories are not accessible via the url for security reasons.

CodeIgniter
|
-application
|_Controller
|_View
|_Model
-system
-css
-images
-js

Code:
&lt;link rel=“stylesheet” type=“text/css” media=“all” href=”&lt;?php echo base_url();?&gt;css/reset.css” /&gt;
[/quote]

thank you it works :bug:




Theme © iAndrew 2016 - Forum software by © MyBB