Call to a member function getRowArray() on array

46 public function edit($id)
47 {
48 $model = new Fakultas_model();
49 $fakultas = $model->getFakultas($id)->getRowArray();
50
51 var_dump($fakultas); // Cetak data yang diambil dari database
52
53 if ($fakultas) {
54 $data[‘fakultas’] = $fakultas;
55 return view(‘fakultas/edit’, $data);
56 } else {

The getFakultas() and getRowArray() are your own methods. Without seeing their code we cannot tell you anything.

But I am pretty convinced that it is your source of problem. Whatever happens inside returns an array. While getRowArray expect to be called on an object (class), not on array.