I tried to check all the names. It works fine in php 5.3 but doesn't work in php 5.5
An unrelated exception was found
Type: RuntimeException
Message: C: \ xampp \ htdocs \ project \ application \ models / Common_Model.php exists, but does not declare the Common_Model class
File Name: C: \ xampp \ htdocs \ project \ system \ core \ Loader.php
Line Number: 306
Backtrace:
File: C: \ xampp \ htdocs \ project \ application \ controllers \ Auth.php Line: 7 Function: __construct
File: C: \ xampp \ htdocs \ project \ index.php Line: 292 Function: require_once
In the post, I see an unexpected backslash before Common_Model.php . Message: C:\xampp\htdocs\project\application\models/Common_Model.php exists, but doesn't declare class Common_Model
Common_Model.php contains:
<? if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Common_Model extends CI_Model { public function __construct() {
EDIT
I just changed Common_Model.php to Common_model.php and still getting the same error
An unrelated exception was found
Type: RuntimeException
Message: C: \ xampp \ htdocs \ project \ application \ models / Common_model.php exists, but does not declare the Common_model class
File Name: C: \ xampp \ htdocs \ project \ system \ core \ Loader.php
Line Number: 306
Backtrace:
File: C: \ xampp \ htdocs \ project \ application \ controllers \ Auth.php Line: 7 Function: __construct
File: C: \ xampp \ htdocs \ project \ index.php Line: 292 Function: require_once
source share