[eluser]stuffradio[/eluser]
Yeah it is easy.
You have your application folders:
config
controllers
errors
helpers
hooks
language
libraries
models
views
In your
controllers folder you will have the default controller. I have mine set to home, so I'll use that in this example. In my
views folder I have a header and footer file.
This is an example of what my home class looks like.
Code:
<?php
class Home extends Controller {
function Home()
{
parent::Controller();
}
function index()
{
$data['title'] = 'The title of my page';
$data['header'] = 'The text in my header page';
$this->load->view('header', $data);
$this->load->view('home_view');
$this->load->view('footer');
}
In your header page you can just go something like
Code:
<html>
<head>
<title><?php echo $title; ?></title>
</head>
<body>
<?php echo anchor('http://codeigniter.com', 'Code Igniter'); ?>
In your footer just close off body and html. In the other views just do all the stuff you normally would do for content.