I have one controller called blog.php
as follows
<?php
class Blog extends Controller {
function index()
{
$this->load->helper(array('form', 'url','security'));
$this->load->library('form_validation');
$data['header'] = 'header'; // name of the view
$this->load->library('template');
$this->load->view('template', $data);
}
function home()
{
$this->load->helper(array('form', 'url','security'));
$this->load->library('form_validation');
$data['header'] = 'header'; // name of the view
$this->load->library('template');
$this->load->view('template', $data);
$this->load->view('home'); // name of the view
}
function forum()
{
$this->load->view('forum'); // name of the view
}
http://localhost/blog is giving me the output what i want
but it seems that css file is not added for
http://localhost/blog/index
or http://localhost/blog/home
why it is so??
n what is the diffrance between
http://localhost/blog/ and http://localhost/blog/index