Referencing phpexcel library

I’m using PHPExcel libraries.
Here’s the setup…
application/libraries/PHPexcel -> all the classes
Here’s the path of the file I’m calling…
application\libraries\PHPExcel\IOFactory.php

in my code…
$this->load->library(‘Phpexcel’);
$this->load->library(‘PHPExcel/IOFactory’);

The first call works but the second one doesn’t. I get an error: Non-existent class: IOFactory

Change it to lowercase like this and give it a try…

[php]$this->load->library(‘PHPExcel/iofactory’);[/php]

When I do that I get a different error:
Fatal error: Call to private IOFactory::__construct() from context ‘CI_Loader’ in C:\inetpub\wwwroot\reporting\system\core\Loader.php on line 1099

Sponsor our Newsletter | Privacy Policy | Terms of Service