douer9399 2016-06-27 14:49
浏览 49

CodeIgniter - 扩展核心类代码问题

I searched for solutions , but all answers i found was outdated and don't helped me. So , there is my problem.

I'm trying to extend CI_Model core model class. I'm following the oficial guide

But it's not working.

Below is how i'm doing it:

Path/Filename of my class i want to create:

application/core/MY_Model.php

The content of MY_Model.php

class MY_Model extends CI_Model {

    public function __construct()
    {
            parent::__construct();
        }
} 

And, this is how i'm trying to load it at my model file:

class Setor extends MY_Model { ....

The error message i'm getting:

Class 'MY_Model' not found in C:\wamp\www\agenda\application\models\Setor.php

I'm using Windows 10, php 5.5.12, CodeIgniter 3.0.6

  • 写回答

0条回答

    报告相同问题?

    悬赏问题

    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 shape_predictor_68_face_landmarks.dat
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 对于相关问题的求解与代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
    • ¥15 保护模式-系统加载-段寄存器
    • ¥15 电脑桌面设定一个区域禁止鼠标操作
    • ¥15 求NPF226060磁芯的详细资料