Welcome Guest, Not a member yet? Register   Sign In
Fatal Error on extending controller
#1

[eluser]Unknown[/eluser]
I have used CI for a few years now. I have a small project that uses extended controllers and everything works fine locally. I have pushed my code to a Test box and now I get a fatal error:

Fatal error: Class 'Company_Controller' not found in /path/to/ci/application/controllers/reports.php on line 3

Offending line:

file: /controllers/reports.php
Code:
class Reports extends Company_Controller {

which extends

file: /core/company_controller.php
Code:
class Company_Controller extends CI_Controller

I have confirmed all of the files are present and the configuration looks correct.
My guess is that it is an issue with capitalization or something a long the lines of differences between operating systems. The code has been checked out of SVN by multiple coworkers and everyone has it running locally just fine.

I am using CI 2.0 and copying the code from a Mac OSX 10 to a linux box.

Any suggestions?




Theme © iAndrew 2016 - Forum software by © MyBB