[eluser]BanditXP[/eluser]
I'm upgrading my application from 1.7.3 to 2.0.1 and am having trouble using the library session in the constructor of a model.
In version 1.7.3 it worked.
Code:
<?php
class Test extends CI_Model
{
$data = '';
function __construct()
{
parent::__construct();
$this->data = $this->session->userdata('id_user');
}
}
Am I doing something wrong?
Thanks.