I'm developing a module and an extension and I'm having trouble accessing the custom libraries that I placed inside the "libraries" folder of my module directory.
I've been trying to link to them inside public functions like this:
$this->EE=& get_instance();
// Instantiate class to access Litmus
$this->EE->load->library('litmus');
In the case above the filename is "litmus.php" and the class name used is "Litmus".
I've also tried putting the same code in the constructor function to no avail.
Thanks in advance for any help on this.
EDIT: ANSWER
All of the comments were helpful and this is what wound up working:
function Litmusee()
{
// Make a local reference to the ExpressionEngine super object
$this->EE =& get_instance();
$this->EE->load->add_package_path(PATH_THIRD.'litmusee/');
$this->EE->load->library('litmus_lib');
$this->lib = $this->EE->litmus_lib;
}
When calling a function:
// Create a new Litmus test
$clients = $this->lib->get_litmus_email_clients();
With this setup I don't believe the library name matters.