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