• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Could not find My_Controller

#1
[eluser]ENG.Helewa[/eluser]
Hello,,

I have some problem. Recently i have moved to linux and i faced this problem:
Code:
Fatal error: Class 'My_Controller' not found in /var/www/html/test/application/controllers/welcome.php on line 3

i tried many solutions including putting My_Controller in application/core but nothing changed.

help please.
thanks in advance.

#2
[eluser]ENG.Helewa[/eluser]
I found the problem Big Grin
in my config file the
Code:
subclass_prefix = 'MY_'
and the sub class name is
Code:
My_Controller
but the problem appeared in Linux because its case sensitive not like windows.
so changing
Code:
subclass_prefix = 'MY_'
to
Code:
subclass_prefix = 'My_'
solved the problem


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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