OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

An uncaught Exception was encountered Type: TypeError Message: Master_Matakuliah::update():

  • Thread starter Thread starter Rio Pradana
  • Start date Start date
R

Rio Pradana

Guest
i've got an error says : An uncaught Exception was encountered Type: TypeError

Message: Master_Matakuliah::update(): Argument #1 ($id) must be of type id, string given, called in C:\xampp\htdocs\sisfo_akademik\system\ore\CodeIgniter.php on line 532

this is my controller : 'public function update($id) { $where = array('id'=> $id); $data['master_matakuliah'] = $this->master_matakuliah_model->edit_data($where, 'master_matakuliah')->result(); $this->load->view('templates_administrator/header'); $this->load->view('templates_administrator/sidebar'); $this->load->view('administrator/master_matakuliah_update', $data); $this->load->view('templates_administrator/footer');

Code:
    }'

<p>i've got an error says :
An uncaught Exception was encountered
Type: TypeError</p>
<p>Message: Master_Matakuliah::update(): Argument #1 ($id) must be of type id, string given, called in C:\xampp\htdocs\sisfo_akademik\system\ore\CodeIgniter.php on line 532</p>
<p>this is my controller :
'public function update($id)
{
$where = array('id'=> $id);
$data['master_matakuliah'] = $this->master_matakuliah_model->edit_data($where, 'master_matakuliah')->result();
$this->load->view('templates_administrator/header');
$this->load->view('templates_administrator/sidebar');
$this->load->view('administrator/master_matakuliah_update', $data);
$this->load->view('templates_administrator/footer');</p>
<pre><code> }'
</code></pre>
 

Latest posts

Top