I Just downloaded CodeIgniter 2.1.3 and Trying to import css into via header_controller,
I have tried SOF: CodeIgniter - Loading CSS, CI_Help_page and codeigniter CSS problem (SitePoint Form Thread). I'm currunlty utterly confuse and Can't find the simple Answer. Does any one out there has a one step answer on how to Import CSS and JS on CodeIgniter version 2.1.3.
I have : register.php
<?php
class register extends CI_Controller {
public function index()
{
//Get header
$this->load->view('header');
//Any other class
$this->load->view('register');
}
}
than header.php
<?php
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<link rel="stylesheet" href="<?php echo base_url();?>css/bootstrap.css" type="text/css" media="screen"/>
<title>DMP</title>
</head>
<body>
Here is my project folders: Project folders.png (incase you want to guid me on where can I place CSS)
Thanks.