Пример #1
0
 public function destroy()
 {
     if (!isset($_POST['orderID']) || !isset($_POST['productID'])) {
         return call('pages', 'error');
     }
     require_once 'models/order_detail.php';
     OrderDetail::destroy($_POST['orderID'], $_POST['productID']);
     header("Location: index.php?controller=orders&action=show");
 }