function cetak($no) { parent::logstat(); $this->view->detail = $this->model->direct_query('select * from detail_trans where no_trans = \'' . $no . '\'')->fetchAll(); $this->view->nota = $this->model->detailTrans($no); $this->view->render('produk/cetak', true); }