[eluser]Bob Sawyer[/eluser]
Sorry if this has been posted elsewhere; I searched for several different variations of the title and couldn't find anything. Anyway...
I am creating a fairly specialized CMS for a vertical market, and want to make it extensible with plugins. Instead of creating a whole separate plugin scheme, I am dropping all of the CMS plugins into a subfolder of the CI plugins directory.
By and large, these plugins will be fairly simple, however, at least one needs to access the database. Since plugins are not object-oriented, $this->db->whatever does not work. I'm already auto-loading the model, so simply including it the old fashioned way creates a second instance of the model class.
So, I'm a little bit lost here. Is it possible to call a model from within a plugin, and if so, what's the correct syntax?
Thanks,
Bob