Rana Tarek
Rana Tarek

Reputation: 39

undefined property: user::$load Call to a member function model() on a non-object in

I tried making a login function using CodeIgniter framework. But, I have this error.
And I have a construct in login controller class. the error is "can't load Model"

enter image description here

Upvotes: 0

Views: 77

Answers (1)

user4419336
user4419336

Reputation:

I think you have miss spelled

Change

laod 

to

load 

on line 21

Also rename your controller where the first letter is only upper case on class and file name as what user guide says

http://www.codeigniter.com/user_guide/general/styleguide.html#file-naming

Upvotes: 2

Related Questions