Browse Source

[server] Fix router

pull/26/head
Starbeamrainbowlabs 4 years ago
parent
commit
4939238861
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
  1. 9
      logic/Actions/FetchData.php

9
logic/Actions/FetchData.php

@ -3,21 +3,16 @@ @@ -3,21 +3,16 @@
namespace AirQuality\Actions;
class Index {
class FetchData {
private $settings;
private $renderer;
public function __construct(
\SBRL\TomlConfig $in_settings) {
$this->settings = $in_settings;
$this->renderer = $in_renderer;
}
public function handle() {
echo($this->renderer->render_file(ROOT_DIR."templates/main.html", [
"title" => "Home",
"content" => file_get_contents(ROOT_DIR."templates/mockup.html"),
"footer_html" => ""
]));
echo("Testing");
}
}

Loading…
Cancel
Save