Php 无法加载HMVC模型,消息:未定义属性:

Php 无法加载HMVC模型,消息:未定义属性:,php,codeigniter,model,module,hmvc,Php,Codeigniter,Model,Module,Hmvc,嗨,我目前正在处理我的hmvc文件的第二个模块,出现了一个错误,我认为它不会加载这个模块的模型。之前的模块模型,工作正常。这个可能有什么错误?这是我的密码 错误 控制器-EmploymentStatus.php <?php class EmploymentStatus extends MY_Controller{ public function __construct(){ parent::__construct(); } // VIEW REDIR

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

错误

控制器-EmploymentStatus.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();
            }

        }

    }

}

?>

model-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\u Model->insert()){
$this->add_view();


LemEmploymentStatus必须是EmploymentStatus,它工作得非常好,只是有一个输入错误

if($query=$this->lEmploymentStatus\u Model->insert()){
$this->add_view();

LemEmploymentStatus必须是EmploymentStatus

<?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;
    }

}

?>