can someone help me i’ve tried to make admin page and i’ve got this Severity: Notice Message: Undefined property: Data_barang::$model_barang

  codeigniter, php, visual-studio-code

class Data_barang extends CI_Controller{

public function index(){
    $data['barang'] = $this->model_barang->tampil_data()->result();
    $this->load->view('templates_admin/Header');
    $this->load->view('templates_admin/Sidebar');
    $this->load->view('admin/data_barang, $data');
    $this->load->view('templates_admin/footer');
}

Source: Ask PHP

LEAVE A COMMENT