title: Codeigniter PHPExcel Class 'PHPExcel_IOFactory' not found
body: <p>I have followed this tutorial here </p>
  
  <p><a href="https://arjunphp.com/how-to-use-phpexcel-with-codeigniter/" rel="nofollow noreferrer">https://arjunphp.com/how-to-use-phpexcel-with-codeigniter/</a> </p>
  
  <p>and here</p>
  
  <p><a href="http://www.ahowto.net/php/easily-integrateload-phpexcel-into-codeigniter-framework/" rel="nofollow noreferrer">http://www.ahowto.net/php/easily-integrateload-phpexcel-into-codeigniter-framework/</a></p>
  
  <p>However, I still get the PHPExcel_IOFactory not found error. I haven't found much help in this area. Is there an alternative excel plugin or is there a way to solve this? </p>
  
  <p>This is my controllers construct</p>
  
  <pre><code>public function __construct() {        
          parent::__construct();
          $this-&gt;load-&gt;library('Excel');
      }
  </code></pre>
  
  <p>This is my controllers upload function</p>
  
  <pre><code>$objReader= PHPExcel_IOFactory::createReader('Excel2007');
  $objReader-&gt;setReadDataOnly(true); 
  $objPHPExcel= PHPExcel_IOFactory::load($document_folder."/".$file_name.".".$file_extension);    
  //        $this-&gt;response($objPHPExcel);
  $objPHPExcel=$objReader-&gt;load($document_folder."/".$file_name.".".$file_extension); 
  $totalrows=$objPHPExcel-&gt;setActiveSheetIndex(0)-&gt;getHighestRow();
  $objWorksheet=$objPHPExcel-&gt;setActiveSheetIndex(0);  
  for($i=2;$i&lt;=$totalrows;$i++){ //2 is one row after the header rows
      $title= $objWorksheet-&gt;getCellByColumnAndRow(0,$i)-&gt;getValue();     
      $first_name= $objWorksheet-&gt;getCellByColumnAndRow(1,$i)-&gt;getValue();            
      $last_name= $objWorksheet-&gt;getCellByColumnAndRow(2,$i)-&gt;getValue(); 
      $date_of_birth= $objWorksheet-&gt;getCellByColumnAndRow(3,$i)-&gt;getValue(); 
      $email=$objWorksheet-&gt;getCellByColumnAndRow(4,$i)-&gt;getValue();
      $phone_number=$objWorksheet-&gt;getCellByColumnAndRow(5,$i)-&gt;getValue(); 
      $company=$objWorksheet-&gt;getCellByColumnAndRow(6,$i)-&gt;getValue(); 
      $input=array(
            'title'=&gt;$title, 
            'first_name'=&gt;$first_name,
            'last_name'=&gt;$last_name,
            'date_of_birth'=&gt;$date_of_birth,
            'email'=&gt;$email,
            'phone_number'=&gt;$phone_number,
            'company'=&gt;$company,
       );
  </code></pre>