[eluser]Imman Kant[/eluser]
The controller file is as follows(welcome.php)
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Welcome extends CI_Controller {
public function index()
{
$this-> load-> view ('template/header');
$this-> load-> view ('template/banner');
$this-> load-> view ('BodyTemp/Bodywrap');
$this-> load-> view ('template/footer');
}
public function contact()
{
$this-> load-> view('template/header');
$this-> load-> view('BodyTemp/Bodywrap');
$this-> load-> view ('template/footer');
}
}
?>
This is the views-> template-> Main.php file that I created
Code:
<?php
$this-> load-> view ('template/header');
$this-> load-> view ('template/banner');
$this-> load-> view ($Bodywrap);
$this-> load-> view ('template/footer');
?>
Should I postt the header, footer and the banner files as well?