Message: Trying to get property of non-object |
Hello Friends,
I receive this error so please help me to solve this. A PHP Error was encountered Severity: Notice Message: Trying to get property of non-object Filename: admin/edit_property.php Line Number: 23 Backtrace: File: C:\wamp64\www\ci-project\application\views\admin\edit_property.php Line: 23 Function: _error_handler File: C:\wamp64\www\ci-project\application\controllers\admin.php Line: 44 Function: view File: C:\wamp64\www\ci-project\index.php Line: 315 Function: require_once
Please don't make us download files to see your code. It is easily placed in you question. You only need include relevant lines, in this case probably the method containing line 23 of edit_property.php. Thanks.
Looks like the $property var is not an object. Is it an array? You don't have the code for your model.
$property = $this->property->find_property($properties_id); //what's this?
Simpler is always better
|
Welcome Guest, Not a member yet? Register Sign In |