Welcome Guest, Not a member yet? Register   Sign In
Undefined Variable when using Views
#3

[eluser]Brandon Beasley[/eluser]
I changed to:

Code:
$data['trends'] = $this->twitter->search('trends');
        
$this->load->view('trends_view', $data);

Still getting error when accessing view:

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: data

Filename: views/trends_view.php



The $data variable is accessible and contains the correct data when viewed within Home controller.


Messages In This Thread
Undefined Variable when using Views - by El Forum - 01-19-2010, 12:02 PM
Undefined Variable when using Views - by El Forum - 01-19-2010, 12:08 PM
Undefined Variable when using Views - by El Forum - 01-19-2010, 12:17 PM
Undefined Variable when using Views - by El Forum - 01-19-2010, 12:57 PM
Undefined Variable when using Views - by El Forum - 01-19-2010, 01:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB