[eluser]Tim Brownlaw[/eluser]
Yep, just like kamikaz said...
You need to remove this...
Code:
$data = array (
'nim' => $nim,
'nama'=> $nama,
'jurusan'=>$jurusan,
'kelas'=>$kelas,
'alamat'=>$alamat,
'telepon'=>$telepon
);
out of your model as you are passing $data as a parameter in your function call which already has the values.
Also, all of those variables $nim, $nama etc, do not exist in the scope of the function...
They are local to the function and they are not defined! Which is why you are getting the error...
So you've defined the $data array in your controller and passing it to your models method (function), which is all you need to do...
Let us know how that goes for you!
Cheers
Tim