Welcome Guest, Not a member yet? Register   Sign In
Trouble with system vars
#3

[eluser]The Beginner[/eluser]
Thanks for the reply. I wnet back and checked to see if other functions from the url helper were available and I called "current_url()"; just like that and it worked. I tried base_url(); again and it worked. I guess I ahve been placing a $ in front of it when I should not. Shows how much i know about PHP.
I still have the problem of data not passing to a view.
I have in my views folder a file called Container.php and in it I have the following..:
Code:
<html>
<head>
<title><?php echo $title; ?></title>
<?php
    $this->load->view('wpMeta');
?>
</head>
<body>
<?php
    $this->load->view('wpHeader');
    $this->load->view('wpMenu');
//         $this->load->view('sidebar', $data);
//         $this->load->view($page, $data);
  //        $this->load->view('footer');
?>
</body>
</html>
The wpHeader loads fine and displays its information exactly as i would expect. wpMenu throws the following error and will not display any information.
A PHP Error was encountered
Severity: Notice

Message: Undefined variable: my_menu

Filename: views/wpMenu.php

Line Number: 7

In the controller they both have $data passed as a paramiter, so I am really confiused as to why it fails to pass the data.
Any Ideas?
Thanks,
Del


Messages In This Thread
Trouble with system vars - by El Forum - 09-26-2009, 06:28 PM
Trouble with system vars - by El Forum - 09-26-2009, 06:31 PM
Trouble with system vars - by El Forum - 09-26-2009, 08:53 PM
Trouble with system vars - by El Forum - 09-27-2009, 05:11 AM
Trouble with system vars - by El Forum - 09-27-2009, 10:08 AM
Trouble with system vars - by El Forum - 09-27-2009, 12:14 PM
Trouble with system vars - by El Forum - 09-27-2009, 02:11 PM
Trouble with system vars - by El Forum - 09-27-2009, 03:34 PM
Trouble with system vars - by El Forum - 09-29-2009, 03:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB