[eluser]li9ht[/eluser]
mycontroller.php
Code:
$data = array("content" => "blabla bla");
$this->load->view("template.php",$data);
template.php
Code:
<?php
$this->load->view('header.php');
?>
<div id="content">
<?=$content;?>
</div>
header.php
Code:
<html>
<head>
<title><?php=$title;?></title>
</head>
<body>
question.. how do i load data into $title?
any other simpler way or am i doing it wrongly..?