在Codeigniter中调用未定义的方法

I am creating a model there is no error in my case, but it give me error

Message: Call to undefined method Auth_model::chech_user()

Here is my code

Controller

class Auth extends CI_Controller
{

    public function __construct()
    {
        parent::__construct();
        $params = array(
            'iteration_count_log2' => '8',
            'portable_hashes' => TRUE
        );
        $this->load->library('hash', $params);
        $this->load->model('auth_model');
    }

    public function login()
    {
        if (isset($_POST) && !empty($_POST)) {
            print_r($this->auth_model->chech_user($_POST));
            exit;
        }

        $this->load->view('auth/login');
        $this->load->view('layouts/footer');
    }

Model

<?php
defined('BASEPATH') or exit('No direct script access allowed');

class Auth_model extends CI_Model
{
    public function check_user($params = array())
    {
        echo 'done';
    }
}

There's a typo within the code you've provided, you're trying to call chech_user() not check_user() within the controller.

change this line

 print_r($this->auth_model->chech_user($_POST));

to

 print_r($this->auth_model->check_user($_POST));