无法加载 HMVC 模型 SAY 消息:未定义的属性:


HMVC model cannot be loaded SAYS Message: Undefined property:

嗨,我目前正在处理HMVC文件的第二个模块,并且出现一个错误,我认为它不会加载该模块的模型。 以前的模块模型,工作正常。 这个可能有什么错误? 这是我的代码。

错误

Severity: Notice
Message: Undefined property: CI::$lEmploymentStatus_Model
Filename: MX/Controller.php
Line Number: 59
Backtrace:
File: C:'xampp'htdocs'TLC_HR'application'third_party'MX'Controller.php
Line: 59
Function: _error_handler
File: C:'xampp'htdocs'TLC_HR'application'modules'EmploymentStatus'Controllers'EmploymentStatus.php
Line: 43
Function: __get
File: C:'xampp'htdocs'TLC_HR'index.php
Line: 292
Function: require_once 

控制器 - 就业状态.php

<?php
class EmploymentStatus extends MY_Controller{
    public function __construct(){
        parent::__construct();
    }
// VIEW REDIRECTING /////////////////////////////////////////////////////////
    public function index(){
    $data['content_view'] = 'EmploymentStatus/empstat_read';
    $this->templates->admin_template($data);
    }
    public function add_view(){
    $data['content_view'] = 'EmploymentStatus/add_view';
    $this->templates->admin_template($data);
    }

// CREATE /////////////////////////////////////////////////////////
    public function create(){

        $this->load->library('form_validation');
        $this->load->model('EmploymentStatus_Model');
        $this->form_validation->set_rules('ES_NAME','Name','trim|required|min_length[2]|max_length[20]');
        $this->form_validation->set_rules('ES_DESCRIPTION','Description','trim|required|max_length[50]');
        if($this->form_validation->run() == FALSE){
            $this->add_view();
        }else{
            if($query = $this->lEmploymentStatus_Model->insert()){
                $this->add_view();
            }else{
                $this->add_view();
            }
        }
    }
}
?>

型号 - EmploymentStatus_Model.php

<?php
class EmploymentStatus_Model extends CI_Model{
/////  CREATE /////////////////////////////////////////////////////////
    public function insert(){
        $input = array(
                'ES_NAME' => $this->input->post('ES_NAME'),
                'ES_DESCRIPTION' => $this->input->post('ES_DESCRIPTION')
                );
        $insert = $this->db->insert('employment_status',$input);
        return $insert;
    }
}
?>

它工作得很好。它只是有一个错别字。

if($query = $this->lEmploymentStatus_Model->insert()){ $this->add_view();

l就业状态

必须是就业状态