diff --git a/app/lib/App/Core/App.php b/app/lib/App/Core/App.php
index 1b41c9e..97b75ec 100644
--- a/app/lib/App/Core/App.php
+++ b/app/lib/App/Core/App.php
@@ -55,18 +55,19 @@ class App
/**
* Render given view
+ *
+ * Reason for the funky names is to avoid name conflicts
*/
- public function view(string $view, array $data = []): void
+ public function view(string $__VIEW, array $__DATA = []): void
{
- // import variables into the current symbol table from an array
- extract($data);
- // require view file
- $path = $this->dir . '/view/' . $view . '.php';
- if (!file_exists($path))
+ $__PATH = $this->dir . '/view/' . $__VIEW . '.php';
+ if (!file_exists($__PATH))
{
throw new Exception("View does not exist");
}
- require $path;
+ // import variables into the current symbol table from an array
+ extract($__DATA);
+ require $__PATH;
}
/**
diff --git a/app/view/pages/race/results.php b/app/view/pages/race/results.php
index 55728ea..01a5bf8 100644
--- a/app/view/pages/race/results.php
+++ b/app/view/pages/race/results.php
@@ -1,41 +1,76 @@
-