示例#1
0
 public function set_delete($f3)
 {
     $post = $f3->get('POST');
     $post = $f3->scrub($post);
     $id = (int) $post['id'];
     $order = new \models\OrdersM();
     $hapus = $order->set_delete($id);
     if ($hapus === 1) {
         $this->set_code("01");
         $this->set_msg("Data telah di hapus");
         $this->set_data("delete", []);
     } else {
         $this->set_code("00");
         $this->set_msg("Terdapat kesalahan proses");
         $this->set_data("tracking", []);
     }
     $this->return_json();
 }
示例#2
0
 function hapusorder()
 {
     $order = new \models\OrdersM();
     $a = $order->set_delete(5);
     var_dump($a);
 }