jonny rotten Fri Jan 26 07:13:49 -0500 2018

Subject: Fatal error: Uncaught exception 'ActiveRecord\UndefinedPropertyException' with message 'Undefined property:

Anyone can help me ?

I have MVC structure and i have problem with insert function from activerecord model

my class ===>
public function Insert() {

$data = array(
'kdname' => $_POST['artist'],
'kdvname' => $_POST['trank'],
'link' => $_POST['link']
);
print_r($data);
$insert = \APP\Models\Model_home::createit($data);
return $insert;
}

model ===>

namespace APP\Models;

use ActiveRecord\Model;

class Model_home extends Model {
//put your code here
public $data;

static $table_name = "tblkunden";
static function listar()
 {
$data = Model_home::all();
return $data;
}
static function createit($data){
print_r($data);
$result = Model_home::create($data);
var_dump($result);
$result->create($data);
//self::create($data);
}

}