![]() |
Error creating new libraries - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Error creating new libraries (/showthread.php?tid=50488) Pages:
1
2
|
Error creating new libraries - El Forum - 03-28-2012 [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. ![]() Error creating new libraries - El Forum - 03-28-2012 [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. |