[eluser]bill19[/eluser]
Hi,
I am new to CI and OO techniques. I am trying to call a 3rd party library from within a model, but having some problems. I have read that calling a library within the model class contructor makes it available within all the model class functions.
here is my constructor:
Code:
class Cl_model extends CI_Model{
function __construct(){
parent::__construct();
$this->load->library('Extracter');
}
Here is my call within a model function:
Code:
echo $this->extracter($elements);
I get the following error:
Quote:Fatal error: Call to undefined method Cl_model::extracter()
Can anyone explain what my mistake is?
Thanks in advance,
Bill