Welcome Guest, Not a member yet? Register   Sign In
Call to undefined method CI_Loader::plugin
#1

[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?
#2

[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 ?!




Theme © iAndrew 2016 - Forum software by © MyBB