[eluser]bunal[/eluser]
Hi Coders,
I am trying to access a custom library from the model.
When using the following code in the constuctor of the model it
WORKS.
CI's Library loaded and method called in success
Code:
$CI =& get_instance();
$CI->load->library('email');
$CI->email->clear();
But when i try to load a custom library and try to access it method it gives
ERROR(Call to a member function )
When the following code runs i know the custom library loads because there is a "Echo" statement in the constructor of the custom library.But the method is not called. It gives error
Code:
$CI =& get_instance();
$CI->load->library('MyLib');
$CI->MyLib->clear();
Any solutions to this problem?