salmane
salmane

Reputation: 4849

Codeigniter Extending CI_controller works on localhost but not server

I created a MY_Base controller class that extends CI_Controller when I call a controller that extends MY_Base everything works fine on my localhost (using MAMP) however on my server I get

Fatal error: Class 'MY_Base' not found in /../application/controllers/organization.php on line 3

I am guessing it is in the way server is routing calls but not sure where to even start looking.

Any ideas where I should start looking? Thank you.

Upvotes: 0

Views: 568

Answers (1)

cschorn
cschorn

Reputation: 1217

When things work on OS X and stop working on Linux, I'd first check for capitalization issues. Did you name the file something like My_Base.php -- other UN*X filesystems are case sensitive.

Upvotes: 3

Related Questions