Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/233.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 扩展核心类Codeigniter-500错误_Php_Codeigniter - Fatal编程技术网

Php 扩展核心类Codeigniter-500错误

Php 扩展核心类Codeigniter-500错误,php,codeigniter,Php,Codeigniter,在我的web应用程序中,我使用application/core/my_控制器扩展Codeigniter core,如下所示: class MY_Controller extends CI_Controller { function __construct(){ parent::__construct(); } } 在我的控制器中,我有: class Dashboard extends MY_Controller { public function _

在我的web应用程序中,我使用application/core/my_控制器扩展Codeigniter core,如下所示:

class MY_Controller extends CI_Controller {

    function __construct(){
        parent::__construct();
    }
}
在我的控制器中,我有:

class Dashboard extends MY_Controller {

    public function __construct(){
        parent::__construct();
        // Your own constructor code
    }
    public function index(){


    }
}
这在我的本地主机上运行得很好,但是在我的生产服务器上,它返回一个500错误,错误消息为“PHP致命错误:找不到类‘my_Controller’。”

本地主机上的PHP版本为5.4.10,生产环境下的PHP版本为5.4.15

我正在使用Codeigniter的最新版本


提前谢谢

您正在Windows下开发(不区分大小写),并部署在基于UNIX的主机上(区分大小写)。将MY_controller.php重命名为MY_controller.php,大写C。

是否在生产服务器中启用
.htaccess