CodeIgniter Forums
A PHP Error encountered dount know what it means - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: A PHP Error encountered dount know what it means (/showthread.php?tid=57826)



A PHP Error encountered dount know what it means - El Forum - 04-15-2013

[eluser]ede196620[/eluser]
Hi i have a check box delete function in my project where when a box is checked and the delete button is clicked it deletes the data but i am getting an error and i do not know what it means can someone explain what it means here is the error :

Code:
A PHP Error was encountered

Severity: Notice

Message: Undefined property: Result_controller::$result_model

Filename: controllers/result_controller.php

Line Number: 28

here is the line of code that the error is thrown at:

Code:
$this->result_model->delete_check($data[$i]);

i tried to Google for help but nothing useful came up.



A PHP Error encountered dount know what it means - El Forum - 04-15-2013

[eluser]rwestergren[/eluser]
This means the result_model property doesn't exist yet, likely because it hasn't been loaded yet. Try this before the line you listed:

Code:
$this->load->model('result_model');