Cetak Surat Keputusan Controller: <?php //File in controller named surat_keputusan.php defined('BASEPATH') OR exit('No direct script access allowed'); class Cetak_surat_keputusan extends CI_Controller { public function __construct() { parent::__construct(); $this->load->helper('url'); $this->load->database(); $this->db->select(); $this->db->from('surat.config_sk'); $query = $this->db->get(); return $query->result(); } public function index() { if(isset($_GET['id_sk'])){ date_default_timezone_set('Asia/Jakarta'); $query=$this->load->database('surat',TRUE)->get_where('config_sk',array('id_sk'=>$_GET['id_sk'])); $data_sk=array( 'id_sk'=>'', 'sk_nomo
Comments
Post a Comment