title: (need explanation) spout reader documentation
body: <p>can someone help me with this spout documentation, </p>
  
  <pre><code>use Box\Spout\Reader\Common\Creator\ReaderEntityFactory;
  
  $reader = ReaderEntityFactory::createReaderFromFile('/path/to/file.ext');
  
  $reader-&gt;open($filePath);
  
  foreach ($reader-&gt;getSheetIterator() as $sheet) {
      foreach ($sheet-&gt;getRowIterator() as $row) {
          // do stuff with the row
          $cells = $row-&gt;getCells();
          ...
      }
  }
  
  $reader-&gt;close();
  </code></pre>
  
  <p>what i don't get is :</p>
  
  <ol>
  <li>What should i do with <em>('/path/to/file.ext')</em></li>
  <li>where do the $filePath come from ? do we need to create a variable named $filePath which will directing to the temporary uploaded file ?</li>
  </ol>
  
  <p>I have read the docimentation and i still don't get it
  I also tried to implement it with code igniter, here's my code :</p>
  
  <p>
  
  <p>require_once APPPATH.'third_party\spout\src\Spout\Autoloader\autoload.php';
  use Box\Spout\Reader\Common\Creator\ReaderEntityFactory;</p>
  
  <p>class Excel extends CI_Controller {</p>
  
  <pre><code>//==========================================================
  // C O N S T R U C T O R
  //==========================================================
      public function __construct()
      {
          parent::__construct();
          $this-&gt;load-&gt;model('Excel_model');
      }
  
      public function index()
      {
          $reader = ReaderEntityFactory::createReaderFromFile('/path/to/file.ext');
          $filePath = APPPATH.'third_party\spout\src\temp\test.xlsx';
          $reader-&gt;open($filePath);
  
          foreach ($reader-&gt;getSheetIterator() as $sheet) {
              foreach ($sheet-&gt;getRowIterator() as $row) {
                  // do stuff with the row
                  $cells = $row-&gt;getCells();
                  echo $cells;
              }
          }
  
          $reader-&gt;close();   
      }   
  
  }   
  </code></pre>
  
  <p>and got this error message instead :</p>
  
  <pre><code>An uncaught Exception was encountered
  
  Type: Box\Spout\Common\Exception\UnsupportedTypeException
  
  Message: No readers supporting the given type: ext
  
  Filename: D:\ONNE\OTHERS\_CODING_PROGRAMMING\XAMPP\htdocs\bulus-ci\application\third_party\spout\src\Spout\Reader\Common\Creator\ReaderFactory.php
  
  Line Number: 59
  
  Backtrace:
  
  File: D:\ONNE\OTHERS\_CODING_PROGRAMMING\XAMPP\htdocs\bulus-ci\application\third_party\spout\src\Spout\Reader\Common\Creator\ReaderFactory.php
  Line: 42
  Function: createFromType
  
  File: D:\ONNE\OTHERS\_CODING_PROGRAMMING\XAMPP\htdocs\bulus-ci\application\third_party\spout\src\Spout\Reader\Common\Creator\ReaderEntityFactory.php
  Line: 24
  Function: createFromFile
  
  File: D:\ONNE\OTHERS\_CODING_PROGRAMMING\XAMPP\htdocs\bulus-ci\application\controllers\Excel.php
  Line: 20
  Function: createReaderFromFile
  
  File: D:\ONNE\OTHERS\_CODING_PROGRAMMING\XAMPP\htdocs\bulus-ci\index.php
  Line: 315
  Function: require_once
  </code></pre>