Call to a member function getDefaultValues() on null error |
My login controller has an error, I don't know why but the Windows system runs fine as if Linux has an error
Quote:A PHP Error was encountered Quote:An uncaught Exception was encountered Controller: PHP Code: <?php LogiModel: PHP Code: <?php I beg you please answer why is my login error?
Your model filename needs to be UCfirst, i.e. Loginmodel, not LoginModel.
Linux is case-sensitive, whereas Windows lets you get away with not following the expected naming. This is a Windows problem, not a Linux error
You refer to a variable $login, which does not appear to be initialized.
It appears that you expect it to refer to your Loginmodel, which would happen if your controller had Code: $this->load->('loginmodel','login'); See https://www.codeigniter.com/user_guide/l...der::model
if this code is how naming is in linux because 404 Page Not Found, the model name is SmsBroadcastmodel.php
I beg you please answer Code: $this->load->model('SmsBroadcastmodel','smsbroadcast'); |
Welcome Guest, Not a member yet? Register Sign In |