I am having a real funny issue loading the model on my AWS ec2 instance.
AWS ec2 Instance is working fine and runs php 5.6 like my localhost.
on localhost the model works perfectly fine, I upload the file to my webpage, and it breaks with the following error:
An uncaught Exception was encountered
Type: RuntimeException
Message: Unable to locate the model you have specified: Dashboard_model
Filename: /var/www/html/poe_dashboard/system/core/Loader.php
Line Number: 314
Backtrace:
File: /var/www/html/poe_dashboard/application/controllers/Dashboard.php
Line: 7
Function: __construct
File: /var/www/html/poe_dashboard/index.php
Line: 292
Function: require_once
To me this does not make sense because if it works locally, with the same PHP version, what is the problem on live?
Class names and file names are all correct according to the codeigniter standards.
here is the link: http://www.haddad.design/poe_dashboard/
If i don't choose to load my model at all and just run the controller to load the view, it loads as it normally should.
Any suggestions?
Controller:
class Dashboard extends CI_Controller {
function __construct() {
parent::__construct();
$this->load->model('dashboard_model');
}
Filename:
dashboard_model.php
Model:
class Dashboard_model extends CI_Model {
public function __construct() {
parent::__construct();
}