Welcome Guest, Not a member yet? Register   Sign In
Error creating new libraries
#11

[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. Smile
#12

[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.




Theme © iAndrew 2016 - Forum software by © MyBB