luofuchuan 发表于 2015-2-8 21:46:28

为什MY_controller会说没发现

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');
       }
}


?>

zh7314 发表于 2015-2-9 11:20:55

这个核心类,不是库文件,放错地方了

^淡如清风 发表于 2015-2-9 12:05:21

MY_Controller.php 要放在 application\core 文件夹下

luofuchuan 发表于 2015-2-10 09:05:18

^淡如清风 发表于 2015-2-9 12:05
MY_Controller.php 要放在 application\core 文件夹下

这样啊!太感谢了

luofuchuan 发表于 2015-2-10 09:05:35

zh7314 发表于 2015-2-9 11:20
这个核心类,不是库文件,放错地方了

了解了!谢谢
页: [1]
查看完整版本: 为什MY_controller会说没发现