位置:应用程序/核心/student_model.php
class Student_model extends CI_Model
{
    private $id;
    public function __construct() {
        parent::__construct();
    }
    public function setId($id){
        $this->id = $id;
    }
    public function getId() {
        return $this->id;
    }
}
位置:应用程序/控制器/test.php
class Test extends CI_Controller {
    public function __construct()
    {
        parent::__construct();
        $this->load->model('Student_model');
    }
    public function index()
    {
        $student = $this->student_model->setId('1234567');
        echo $student->getId();
    }
}
我收到以下消息/错误。
Message: Undefined property: Test::$student_model
Filename: controllers/test.php
Line Number: 13
这一行是我调用 setId 方法的地方。
谁能看到我做错了什么?