CodeIgniter Forums

Full Version: A PHP Error encountered dount know what it means
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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.

El Forum

[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');