title: Read excel file using PHPExcel and codeigniter resulted in blank page
body: <p>I'm trying to read a .xlsx file using PHPExcel and the echo the results in my view, but when I run the file, the browser shows nothing but a blank page. Here is my controller:</p>
  
  <pre><code>class Input_data extends CI_Controller{
  
  function __construct()
  {
      parent::__construct();
      $this-&gt;load-&gt;database();
      $this-&gt;load-&gt;helper("url");
      $this-&gt;load-&gt;library('session');
      $this-&gt;load-&gt;library('phpexcel');
      $this-&gt;load-&gt;library('PHPexcel/iofactory');
  }
  
  function index()
  {       
      $names=array();
      $no=0;
      $inputFileType = 'Excel2007';
      $objReader = IOFactory::createReader($inputFileType);
      $objPHPExcel  = $objReader -&gt;load(FCPATH."/upload/Lap_Final_RLPS.xlsx");
      $objWorksheet = $objPHPExcel-&gt;setActiveSheetIndex(0);
      $maxRow = $objWorksheet-&gt;getHighestRow();
      for ($i=14; $i&lt;=$maxRow; $i++)
      {
          $names[$no] = $objWorksheet-&gt;getCell(6, $i)-&gt;getValue();
          $no++;
      }
  
      $data['names'] = $names;
      $data['no'] = $no;
      $this-&gt;load-&gt;view('/teps/input_data_view',$data);
  }}
  </code></pre>
  
  <p>It seems that I've got it wrong in this line:</p>
  
  <pre><code>$objPHPExcel  = $objReader -&gt;load(FCPATH."/upload/Lap_Final_RLPS.xlsx");
  </code></pre>
  
  <p>because every time I deleted that line and the lines below it (until the lines necessary to load my view), I got my view showed allright, unless of course, I can't read my excel file.</p>
  
  <p>Can anyone show me what's wrong? Thank you.</p>