Example #1
0
 public static function orders()
 {
     echo ViewHelper::render("view/customer-orders-list.php", ["orders" => OrdersDB::getAllUserOrders(["uporabnik_id" => $_SESSION["id"]])]);
 }
Example #2
0
 public static function orders()
 {
     $narocila = OrdersDB::getAllUserOrders(["uporabnik_id" => $_SESSION["id"]]);
     http_response_code(200);
     echo json_encode($narocila);
 }