[eluser]Unknown[/eluser]
Needing a little assistance with setting up multiple view references from within on controller function.
Maybe I am setting this up wrong and if so please let me know.
Question is how do I carry stored variable data like the $seo array listed below from the controller into the view if the view is loaded from the controller.
Views:
View1: header
Code:
<!DOCTYPE html>
<html>
<head>
<meta name="keywords" content="<?PHP echo $seo->keywords ?>" />
<meta name="description" content="<?PHP echo $seo->description ?>" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title></title>
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
View2: navi
Code:
<div id="menu">
<ul>
<?PHP echo $menu->list ?>
</ul>
</div>
View3: footer
Code:
<div id="footer">
<p>Footer</p>
</div>
</body>
</html>
Controller:
Code:
class User extends CI_Controller {
public function addUser(){
$this->load->view('header');
$this->load->view('wrapper');
$this->load->view('navi');
$this->load->view('add_user');
$this->load->view('footer');
}