Welcome Guest, Not a member yet? Register   Sign In
"Variable data seems to be uninitialized" - Netbeans warning message
#1

[eluser]term25[/eluser]
NetBeans is throwing this warning message:
Variable $data seems to be uninitialized

In this code:
Code:
public function services()
{
    $data['header'] = "Services";
    $this->load->view('admin_services_view', $data);
}

What does warning message mean? Should I write it like this and why?
Code:
public function services($data)
{
    $data['header'] = "Services";
    $this->load->view('admin_services_view', $data);
}

Or is the problem somewhere else? Thanks in advance.


Messages In This Thread
"Variable data seems to be uninitialized" - Netbeans warning message - by El Forum - 03-24-2012, 01:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB