title: Common_Model.php exists, but doesn't declare class Common_Model
body: <p>I tried checking all the names. It is working fine in <strong>php 5.3</strong> but not working in <strong>php 5.5</strong></p>
  
  <blockquote>
    <p>An uncaught Exception was encountered</p>
    
    <p>Type: RuntimeException</p>
    
    <p>Message: C:\xampp\htdocs\project\application\models/Common_Model.php
    exists, but doesn't declare class Common_Model</p>
    
    <p>Filename: C:\xampp\htdocs\project\system\core\Loader.php</p>
    
    <p>Line Number: 306</p>
    
    <p>Backtrace:</p>
    
    <p>File: C:\xampp\htdocs\project\application\controllers\Auth.php Line: 7
    Function: __construct</p>
    
    <p>File: C:\xampp\htdocs\project\index.php Line: 292 Function:
    require_once</p>
  </blockquote>
  
  <p>In the message, I can see an unexpected backslash in front of <code>Common_Model.php</code>. <code>Message: C:\xampp\htdocs\project\application\models/Common_Model.php exists, but doesn't declare class Common_Model</code></p>
  
  <p><code>Common_Model.php</code> contains:</p>
  
  <pre><code>&lt;? if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  
  class Common_Model extends CI_Model {
  
  
          public function __construct()
          {
                  // Call the CI_Model constructor
                  parent::__construct();
          }
          .
          .
          .
          .
  </code></pre>
  
  <hr>
  
  <p><strong>EDIT</strong></p>
  
  <p>I just changed Common_Model.php to Common_model.php and still getting the same error</p>
  
  <blockquote>
    <p>An uncaught Exception was encountered</p>
    
    <p>Type: RuntimeException</p>
    
    <p>Message: C:\xampp\htdocs\project\application\models/Common_model.php
    exists, but doesn't declare class Common_model</p>
    
    <p>Filename: C:\xampp\htdocs\project\system\core\Loader.php</p>
    
    <p>Line Number: 306</p>
    
    <p>Backtrace:</p>
    
    <p>File: C:\xampp\htdocs\project\application\controllers\Auth.php Line:
    7 Function: __construct</p>
    
    <p>File: C:\xampp\htdocs\project\index.php Line: 292 Function:
    require_once</p>
  </blockquote>