It’s best to upload views to your views.
Inside the views /content.php:
<? $this->view('header', array('title'=>'The page title', 'keywords'=>'some keywords', 'etc'=>'...')); ?>
<div id="content">My content here</div>
<? $this->view('footer'); ?>
So, in your controller you will do the following:
$this->load->view('content', $data);
$data may contain a “title” or “keywords” and which will be implemented as such in your controller:
$data['title'] = 'title';
$data['keywords' = 'keywords';
"content":
<? $this->view('header', array('title'=>$title, 'keywords'=>$keywords)); ?>
<div id="content">My content here</div>
<? $this->view('footer'); ?>
-, : CodeIgniter PHP Rails