This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Bayar extends Dashboard_Controller | |
{ | |
public function index(){ | |
$this->load->view('dashboard/bayar_form'); | |
} | |
public function upload_process(){ | |
$config['upload_path'] = './uploads/'; | |
$config['allowed_types'] = 'gif|jpg|png'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function req_data($dari, $ke, $berat) | |
{ | |
$this->load->library('rajaongkir'); | |
$cost = $this->rajaongkir->cost($dari, $ke, $berat, 'jne'); | |
$costb = $this->rajaongkir->cost($dari, $ke, $berat, 'tiki'); | |
$costc = $this->rajaongkir->cost($dari, $ke, $berat, 'pos'); | |
$res_jne = json_decode($cost,TRUE); | |
$res_tiki = json_decode($costb,TRUE); | |
$res_pos = json_decode($costb,TRUE); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function auto_halaman($num) | |
{ | |
$data['anime_data'] = $this->anime_panel_model->mengambil_data2($num); //ini untuk menload data posting nya | |
$this->load->view('browse/front/anime_view', $data); // ini untuk ke view nya | |
} |