title: Why does PHPExcel try to create a class name out of the Excel file name when used inside Kohana?
body: <p>I am trying to build the <strong>PHPExcel</strong> library into an application built with the <strong>Kohana</strong> PHP framework.</p>
  
  <p>In a test app <strong>outside</strong> the Kohana framework, I can create and read Excel files fine.</p>
  
  <p>And <strong>inside</strong> the Kohana application, <strong>creating</strong> a file works:</p>
  
  <pre><code>$objPHPExcel = new PHPExcel();
  $objPHPExcel-&gt;getProperties()-&gt;setCreator("Test Generator")
      -&gt;setTitle("Test Excel5 File");
  $objPHPExcel-&gt;setActiveSheetIndex(0)-&gt;setCellValue('A1', 'Hello');
  $objPHPExcel-&gt;getActiveSheet()-&gt;setTitle('Test Sheet');
  $objPHPExcel-&gt;setActiveSheetIndex(0);
  $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5');
  $objWriter-&gt;save('test123.xls'); //created in the root directory of application
  </code></pre>
  
  <p>However, when <strong>inside</strong> the Kohana framework when I try to <strong>read a file</strong> with this code:</p>
  
  <pre><code>$objReader = PHPExcel_IOFactory::createReader('test123.xls');
  </code></pre>
  
  <p>I get this <strong>error</strong>:</p>
  
  <p><img src="https://i.stack.imgur.com/2qdks.png" alt="alt text"></p>
  
  <p><strong>How can I prevent PHPExcel/Kohana from trying to create a class name out of the Excel file name?</strong></p>