<?php
/* ----------------------------------------------------------------------------------
 * validasi session bila tidak ada dipaksa ke halaman login
 * ----------------------------------------------------------------------------------*/
if (!isset($this->session->login['id'])) {
    gotoLogin();
}
validateUserSession($this->session->login['id']);

/* ----------------------------------------------------------------------------------
 * loader dari masing-masing modul
 * ----------------------------------------------------------------------------------*/
$this->jenisTr = $tmpJenis = $this->uri->segment(4);
$this->cCode = $cCode = "_TR_" . $this->jenisTr;
$this->modul = $modul = $this->uri->segment(1);

/* ----------------------------------------------------------------------------------
 * MODUL_### dibentuk di he_url_helper
 * ---------------------------------------------------------------------------------*/
$this->modulPath = $modulPath = MODUL_PATH;
// cekHitam($this->modulPath);
/* ---------------------------------------------------------------------------------
 * untuk ngeload config pada modul
 * ---------------------------------------------------------------------------------*/
$this->configPath = $configPath = MODUL_CONFIG_PATH;
// cekHitam($this->configPath);


//AUTOLOAD
//require BASEPATH."helpers/directory_helper".EXT;
//$TMC = explode("/", MODUL_CONFIG_PATH);
//$transaksiUi = directory_map(APPPATH . $TMC[2] . "/" . $TMC[3] . "/" . $TMC[4] . "/" ."autoload_ui/", TRUE);
//$preAutoLoadConfig = array();
//foreach($transaksiUi as $trCode){
//    if(!is_array($trCode)){
//        $class = str_replace(EXT, "", $trCode);
//        include( APPPATH . $TMC[2] . "/" . $TMC[3] . "/" . $TMC[4] . "/" ."autoload_ui/".strtolower($trCode) );
//        $preAutoLoadConfig[$class] = $config['coTransaksiUi'][$class];
//    }
//}
//
////        $this->load->config($configPath . "coTransaksiUi");
////        $this->configUi = $this->config->item("coTransaksiUi");
//
//$this->configUi = $preAutoLoadConfig;

$this->load->config($configPath . "coTransaksiUi");
$this->configUi = $this->config->item("coTransaksiUi");
$this->configUiJenis = $this->configUi[$this->jenisTr];

$this->load->config($configPath . "coTransaksiCore");
$this->configCore = $this->config->item("coTransaksiCore");
$this->configCoreJenis = $this->configCore[$this->jenisTr];

$this->load->config($configPath . "coTransaksiLayout");
$this->configLayout = $this->config->item("coTransaksiLayout");
$this->configLayoutJenis = $this->configLayout[$this->jenisTr];

// arrPrint($this->uri->segment_array());
// cekBiru($this->cCode);
// arrPrint($_SESSION[$this->cCode]);
// arrPrintPink($this->session);
// arrPrintWebs($this->session->_TR_461);
// arrPrintWebs($this->session->$cCode);
// if(!isset($this->session)){
//
// }
cekKuning("_contruct_file included " . __FILE__);
?>