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"); }