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 stata安慰剂检验作图但是真实值不出现在图上
    • ¥15 c程序不知道为什么得不到结果
    • ¥40 复杂的限制性的商函数处理
    • ¥15 程序不包含适用于入口点的静态Main方法
    • ¥15 素材场景中光线烘焙后灯光失效
    • ¥15 请教一下各位,为什么我这个没有实现模拟点击
    • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题