Example #1
0
 public static function ordersProven()
 {
     $rules = ["sort" => FILTER_SANITIZE_SPECIAL_CHARS];
     $sort = filter_input_array(INPUT_GET, $rules);
     if (self::checkValues($sort)) {
         echo ViewHelper::render("view/customer-orders-list-proven.php", ["orders" => OrdersDB::getUserAllProven($sort, ["uporabnik_id" => $_SESSION["id"]])]);
     } else {
         ViewHelper::redirect(BASE_URL . "orders/proven?sort=id");
     }
 }
Example #2
0
 public static function ordersProven()
 {
     $sort["sort"] = "id";
     $narocila = OrdersDB::getUserAllProven($sort, ["uporabnik_id" => $_SESSION["id"]]);
     http_response_code(200);
     echo json_encode($narocila);
 }