I have this code here:
class Class_name extends CI_Controller {
function __construct()
{
parent::__construct();
$this->user = array("value"=>"test");
}
public function index() {
print_r($this>user);
}
}
The problem is $this->user returns as 1 instead of the actual array. I have tried other variable names with no luck.
What am I doing wrong?
Peter