Files
2026-06-13 16:02:07 +10:00

33 lines
724 B
PHP

<?php
defined('BASEPATH') or exit('No direct script access allowed');
class ManageGudang extends CI_Controller
{
function __construct()
{
parent::__construct();
$this->load->model('ModelGudang', 'MG');
$this->load->library(['datatables', 'form_validation']);
$this->form_validation->set_error_delimiters('', '');
}
public function output_json($data, $encode = true)
{
if ($encode) $data = json_encode($data);
$this->output->set_content_type('application/json')->set_output($data);
}
public function index()
{
$datGudang = $this->MG->getDataGudang();
$data = [
'sidebar' => "master data",
'navChild' => "",
'gudang' => $datGudang
];
$this->load->view('master/Gudang', $data);
}
}