[eluser]Marian Alexandru[/eluser]
If a call $that->m_logat or $that->CI->m_logat or m_logat:: i don't get error.
Line 40 is self::$CI->load->view('logat/header', $data); and now it works. Thx a lot.
[eluser]Narf[/eluser]
This might have something to do with $data being actually used first in that line, but I'm not going to dig on how the PHP engine works. The point is, from within a library you can't directly call other libraries and models like in a controller, without explicitly referencing to the CI super-object.