I want load a css file to my page. This my code for load css:
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>css/emdad.css" />
Also, I set this code in my controller:
$this->load->helper(array('form', 'url','html'));
Really, I am very confused. In this I write piece of my code.
Controller:
class Main extends CI_Controller{
public function __construct(){
parent::__construct();
$this->load->library('emdadlib');
$this->load->helper(array('form', 'url','html'));
}
public function index(){
$this->load->view('structure',$data);
}
public function register(){
$this->load->view('structure',$data);
}
this is view(structure.php):
<html >
<head>
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>css/emdad.css" />
base_url is: 127.0.0.1/emdad
. I type 127.0.0.1/emdad/index.php/main/register
in url browser. then page is loaded successfully but the css file does not handle.