Php HMVC-添加多个模型

Php HMVC-添加多个模型,php,codeigniter,hmvc,Php,Codeigniter,Hmvc,嗨,我正在尝试使用以下方法在控制器中加载两个模型: modules --customers ----controllers -------customers.php ----models -------customers_model.php -------handler_model.php 但是,我总是会遇到以下错误: class Customers extends CoreAPI { public function __construct() { parent :: __co

嗨,我正在尝试使用以下方法在控制器中加载两个模型:

modules
--customers
----controllers
-------customers.php
----models
-------customers_model.php
-------handler_model.php
但是,我总是会遇到以下错误:

class Customers extends CoreAPI
   {

public function __construct()
{
    parent :: __construct();
    $this->load->model('Customers_model', 'Customers');
    $this->load->model('Customers/Handler_model');
}

 public function test_get()
 {
    $this->Handler_model->test; 

    exit;
 }
我尝试了上述两种加载模型的不同方法

请帮忙。多谢各位

A PHP Error was encountered
Severity: Notice

Message: Undefined property: CI::$test

Filename: core/Model.php

Line Number: 73

消息
message:Undefined属性:CI::$test
表示当前文件夹中未调用类
Cl
Cl
从哪里来?我使用了HMVC,因此它位于\application\third\u party\MX\Ci.phphas下。当前页面正在调用它?我的处理程序模型扩展到Ci模型类处理程序模型扩展Ci模型确保在
$test
中已在
Cl\u模型中声明并可供公众访问。
class Handler_model extends CI_Model
{
    public function __construct()
    {
        parent :: __construct();
    }


    public function test()
    {
        echo 'TEST'; 
    }
}