Haloo! Selamat Datang di Komunitas Private Training Web Development (46539 Members, 430 Projects, 3580 Topic, 9792 Comments)

Butuh karyawan baru? atau seorang Web Developer (Part-time/Freelance/Full-time), cari disini : Members Area Jobs!
Swarakalibata Marketplace - Penambahan Rekening di Admin error
Mohamad Ipan Mengatakan : Members -
Rate Topic :
  1. Assalamualaikum Warahmatullahi Wabarakatuh...
  2. Bagaimana cara mengatasi bug ini min ?
  3. An uncaught Exception was encountered
  4. Type: Error
  5.  
  6. Message: Call to a member function rekening_tambah() on null
  7.  
  8. Filename: C:\xampp\htdocs\tokoku\application\controllers\Administrator.php
  9.  
  10. Line Number: 2947
  11.  
  12. Backtrace:
  13.  
  14. File: C:\xampp\htdocs\tokoku\index.php
  15. Line: 294
  16. Function: require_once
Robby Prihandaya Mengatakan :
Admin -
  1. Assalamualaikum,.. ini untuk swarakalibata marketplace ya mas?
  2. coba buka file "application/controllers/administrator.php", cari script berikut :
  3. function tambah_rekening(){
  4. cek_session_akses('rekening',$this->session->id_session);
  5. if (isset($_POST['submit'])){
  6. $this->model_rekening->rekening_tambah();
  7. $data = array('nama_bank'=>$this->db->escape_str($this->input->post('a')),
  8. 'no_rekening'=>$this->db->escape_str($this->input->post('b')),
  9. 'pemilik_rekening'=>$this->db->escape_str($this->input->post('c')));
  10. $this->model_app->insert('rb_produk',$data);
  11. redirect('administrator/rekening');
  12. }else{
  13. $this->template->load('administrator/template','administrator/additional/mod_rekening/view_rekening_tambah');
  14. }
  15. }
  16.  
  17. Kemudian ubah menjadi :
  18.  
  19. function tambah_rekening(){
  20. cek_session_akses('rekening',$this->session->id_session);
  21. if (isset($_POST['submit'])){
  22. $data = array('nama_bank'=>$this->db->escape_str($this->input->post('a')),
  23. 'no_rekening'=>$this->db->escape_str($this->input->post('b')),
  24. 'pemilik_rekening'=>$this->db->escape_str($this->input->post('c')));
  25. $this->model_app->insert('rb_rekening',$data);
  26. redirect('administrator/rekening');
  27. }else{
  28. $this->template->load('administrator/template','administrator/additional/mod_rekening/view_rekening_tambah');
  29. }
  30. }

Maaf, Untuk Memberikan Komentar Anda Harus Login !!!