CodeIgniter Undefined property when loading a model [duplicate]
问题 This question already has answers here : Codeigniter - I am looking to use/connect to a different database for one of my controllers and one model (3 answers) Closed 6 years ago . I'm receiving the following errors whilst trying to implement a very simple model controller in codeigniter. I'm new to the framework but as far as I can see this should work. I've also tried auto loading the model. I am autoloading the database library. Message: Undefined property: User::$user_model Fatal error: