• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MY_Controller on Dreamhost

[eluser]Kyle Ellman[/eluser]
I'm extending CI_Controller with MY_Controller (well, I renamed it to Base_Controller). I've tested it on my local machine and it works like a charm, but as soon as I put it on my dreamhost server, I get this error:

Fatal error: Class 'Base_Controller' not found in /home/.../application/controllers/player.php on line 3

Anyone have any idea why it can't find the file?

Thank you.


have you set the subclass_prefix of config/config on Dreamhost to Base_ ?

[eluser]Kyle Ellman[/eluser]

Here's the thing: it works on my local machine, just not on dreamhost.

Assuming your local machine is a windows machine and your dreamhost server is a linux machine, check the filename. Linux is case sensitive.

[eluser]Kyle Ellman[/eluser]
Mine is a mac, dreamhost is linux. But the case here shouldn't make a difference since dreamhost has no issues with extending CI_Controller. I'm doing exactly as the tutorial says.

Can you show some code. Base_Controller and the player controller.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.