Welcome Guest, Not a member yet? Register   Sign In
Now I just know I'm being a newbie here!
#11

[eluser]Clooner[/eluser]
Try $this->data instead of $data
#12

[eluser]nmweb[/eluser]
Read up on scope. The $data array is local in your Application::Application method. How do you expect it to be available in your Home::index method. Correct it by putting $this->data=$data; at the bottom of your Application method and changing index() to
<php>
function index()
{
$this->load->view('home',$this->data);
}
</php>
That should do it.
#13

[eluser]deadfrog[/eluser]
Ah brilliant, cheers guys. I knew it had to be something pretty basic!




Theme © iAndrew 2016 - Forum software by © MyBB