I'm not sure if this is possible, but various posts in the ExpressionEngine forums and in the documentation suggest that I should be able to let ExpressionEngine know what's going on in the CodeIgniter foundation that it's built on.
So, in light of that, I've got a CodeIgniter app, and an ExpressionEngine site. The /system directory is structured like this:
/system
- /system/codeigniter
- /system/codeigniter/application (this is my existing CodeIgniter application)
/system/codeigniter/system (this is the same CI folder that EE runs from)
/system/expressionengine
- ... (this is the normal EE - templates, add-ons, etc.
I'm fairly new to ExpressionEngine, but my understanding was that I could use this setup to built an EE module that would integrate well with CodeIgniter.
Currently, I have a module setup, and a method in it that does this, just as a starting point:
function __construct()
{
$this->EE =& get_instance();
$this->CI =& get_instance();
$this->auth =& $this->CI->load->library('mylibrary');
}
But then it doesn't recognize the library when I load the module (this is all happening inside the EE control panel, at this point, just so I can make a connection between the two). Says it doesn't exist. Is there anything I can do to make this connection, or am I going the wrong direction entirely?
Thanks, Jonathan