Welcome Guest, Not a member yet? Register   Sign In
MY_Controller on Dreamhost
#1

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

[eluser]toopay[/eluser]
htaccess?
#3

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

[eluser]Kyle Ellman[/eluser]
Yes.

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

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

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

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




Theme © iAndrew 2016 - Forum software by © MyBB