CodeIgniter Forums
Call to undefined method CI_Loader::plugin - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Call to undefined method CI_Loader::plugin (/showthread.php?tid=50974)



Call to undefined method CI_Loader::plugin - El Forum - 04-16-2012

[eluser]targeting[/eluser]
Hi!

I have this error message "Call to undefined method CI_Loader::plugin".

I don't know what is the reason. By default in autoload php there is no plugin for autoload.

In my controller a have this function :
function exportedcsv()
{
$this->load->plugin('to_csv');
$result = $this->db->query($this->session->all_userdata('lastquery'));
to_csv($result, 'myfile');
}
Anybody have some idea?


Call to undefined method CI_Loader::plugin - El Forum - 04-16-2012

[eluser]PhilTem[/eluser]
Plugins have been removed as of CI 2.x so there is no more thing like a plugin. You either use a helper or a library to perform the specific tasks.

So you're most likely using an old CI 1.7.x version and now use a CI 2.x ?!