[eluser]The Beginner[/eluser]
Tried that...:
Warning: require_once(../system/codeigniter/CodeIgniter.php) [function.require-once]: failed to open stream: No such file or directory in C:\xamp\htdocs\xampp\wpapp\index.php on line 115
Fatal error: require_once() [function.require]: Failed opening required '../system/codeigniter/CodeIgniter.php' (include_path='.;\xamp\php\PEAR') in C:\xamp\htdocs\xampp\wpapp\index.php on line 115
I am at a total loss, I just created yet another brand new instance and started from scrach and as soon as I start passing $data from one view to the other I get an error.
Below is my code in a file called Container.php...:
<html>
<head>
<title><?php echo $title; ?></title>
<?php
$data['burl'] = "http://127.0.0.1/xampp/wpapp/";
$this->load->view('wpMeta',$data);
?>
</head>
<body>
<?php
$this->load->view('wpHeader', $data);
$this->load->view('wpMenu', $data);
NOTE: When I load the wpMenu view it does not see $data and fails.
// $this->load->view('sidebar', $data);
// $this->load->view($page, $data);
// $this->load->view('footer');
?>
</body>
</html>
The call to load container is done from my controller like...:
$this->db->where('wp_header_active', '1');
$querydata = $this->db->get('wp_header_data');
if ($querydata->num_rows() > 0):
foreach($querydata->result() as $row):
$data['header_logo'] = snappy_image($row->wp_header_logo, 'My Picture', 'somestyle');
$data['title'] = $row->wp_header_name;
endforeach;
endif;
$querydata->free_result();
$data['burl'] = "http://127.0.0.1/xampp/wpapp/";
$this->load->view('wpContainer',$data);