I have never touched the model.php file, however I am getting this error. Jobprocess is my controller and $lastname is a variable assigned correctly within it. I have no idea why this error is coming up. This is using codeigniter framework
Message: Undefined property: Jobprocess::$lastname
Filename: core/Model.php
Line Number: 50
Make sure to autoload model on application/config/autoload.php at line 56.
Second, make sure that the name of php file is lowercase (mymodel.php)
and finally, make sure to capitalize the first letter of your model class name
*Codeigniter Version 3 – Models must have a file name that begins with a capital letter:
“Where Model_name is the name of your class. Class names must have the first letter capitalized with the rest of the name lowercase. Make sure your class extends the base Model class.” https://www.codeigniter.com/userguide3/general/models.html