copy dari repo om Irfan
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
use Restserver\Libraries\REST_Controller;
|
||||
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
require APPPATH . 'libraries/REST_Controller.php';
|
||||
require APPPATH . 'libraries/Format.php';
|
||||
|
||||
class ManageDpPajak extends CI_Controller
|
||||
{
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->load->model('ModelDpPajak', 'DpPajak');
|
||||
$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()
|
||||
{
|
||||
$dppajak = $this->DpPajak->getDataDpPajak();
|
||||
|
||||
$data = [
|
||||
'sidebar' => "menu accounting",
|
||||
'navChild' => "",
|
||||
'dppajak' => $dppajak
|
||||
];
|
||||
|
||||
$this->load->view('proses/DpPajak', $data);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user