用户
 找回密码
 入住 CI 中国社区
搜索
查看: 1498|回复: 4
收起左侧

[已解决] 为什MY_controller会说没发现

[复制链接]
发表于 2015-2-8 21:46:28 | 显示全部楼层 |阅读模式
SCREAM: Error suppression ignored for
( ! ) Fatal error: Class 'MY_Controller' not found in E:\study\the internet technology\sql\wamp\www\mydesign\application\controllers\index.php on line
我的librarry中是有MY_Controller.php的<?php
class MY_Controller extends CI_Controller{
        function __construct(){
                parent::__construct();
               
        }
}
?>



<?php
class Index extends MY_Controller{
         function  __construct(){
                 parent::__construct();
         }
         function index(){
                 $this->load->view('index');
         }
}


?>

发表于 2015-2-9 11:20:55 | 显示全部楼层
这个核心类,不是库文件,放错地方了
发表于 2015-2-9 12:05:21 | 显示全部楼层
MY_Controller.php 要放在 application\core 文件夹下
 楼主| 发表于 2015-2-10 09:05:18 | 显示全部楼层
^淡如清风 发表于 2015-2-9 12:05
MY_Controller.php 要放在 application\core 文件夹下

这样啊!太感谢了
 楼主| 发表于 2015-2-10 09:05:35 | 显示全部楼层
zh7314 发表于 2015-2-9 11:20
这个核心类,不是库文件,放错地方了

了解了!谢谢

本版积分规则