CodeIgniter Forums

Full Version: MY_Controller on Dreamhost
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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.

El Forum

[eluser]toopay[/eluser]
htaccess?

El Forum

[eluser]skunkbad[/eluser]
have you set the subclass_prefix of config/config on Dreamhost to Base_ ?

El Forum

[eluser]Kyle Ellman[/eluser]
Yes.

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

El Forum

[eluser]danmontgomery[/eluser]
Assuming your local machine is a windows machine and your dreamhost server is a linux machine, check the filename. Linux is case sensitive.

El Forum

[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.

El Forum

[eluser]cideveloper[/eluser]
Can you show some code. Base_Controller and the player controller.