CodeIgniter Forums
MY_Controller on Dreamhost - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: MY_Controller on Dreamhost (/thread-41821.html)



MY_Controller on Dreamhost - El Forum - 05-17-2011

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


MY_Controller on Dreamhost - El Forum - 05-18-2011

[eluser]toopay[/eluser]
htaccess?


MY_Controller on Dreamhost - El Forum - 05-18-2011

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


MY_Controller on Dreamhost - El Forum - 06-13-2011

[eluser]Kyle Ellman[/eluser]
Yes.

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


MY_Controller on Dreamhost - El Forum - 06-13-2011

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


MY_Controller on Dreamhost - El Forum - 06-13-2011

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


MY_Controller on Dreamhost - El Forum - 06-13-2011

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