[eluser]HooJee[/eluser]
Hi Guys
I am trying to echo some variables in my view which are passed from the controller but I keep getting thefollowing error:
Quote:A PHP Error was encountered
Severity: Notice
Message: Undefined variable: arrData
Filename: admin/projects.php
Line Number: 59
This is the controller source code:
Code:
$arrData = array(
'title' => $title,
'version' => $version,
);
this->load->view('admin/reports', $arrData);
This is how I echo in the view:
Code:
<?php echo arrData['title']; ?>