Welcome Guest, Not a member yet? Register   Sign In
[solved]Error Undefined property:
#1

[eluser]brucebat[/eluser]
I have found the source of a new problem when calling my model function?

-I have checked my variables being passed that they are initilized!
-I have ensure the datbase library is autoloaded
-I have located the where the error is occurring see below.


Error:
Quote:A PHP Error was encountered

Severity: Notice

Message: Undefined property: Submit::$create_record

Filename: core/Model.php

Line Number: 50


Code:
$this->load->model('submit_model');
echo "test breakpoint";       return;                                                           $this->submit_model->create_record($completedstaffrows, $completedeventrows); //error happens here?

Would a constructor fix this?


Function declaration in the model called Submit_model
Code:
public function create_record($completedstaffrows , $completedeventrows)
        {
        
             //code here
                 }


Messages In This Thread
[solved]Error Undefined property: - by El Forum - 07-17-2011, 01:49 PM
[solved]Error Undefined property: - by El Forum - 07-17-2011, 08:26 PM
[solved]Error Undefined property: - by El Forum - 07-18-2011, 05:11 AM
[solved]Error Undefined property: - by El Forum - 07-18-2011, 09:41 AM
[solved]Error Undefined property: - by El Forum - 07-18-2011, 10:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB