mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-22 06:23:01 +00:00
[server] Fix router
This commit is contained in:
parent
9e347fdeb8
commit
4939238861
1 changed files with 2 additions and 7 deletions
|
@ -3,21 +3,16 @@
|
||||||
namespace AirQuality\Actions;
|
namespace AirQuality\Actions;
|
||||||
|
|
||||||
|
|
||||||
class Index {
|
class FetchData {
|
||||||
private $settings;
|
private $settings;
|
||||||
private $renderer;
|
private $renderer;
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
\SBRL\TomlConfig $in_settings) {
|
\SBRL\TomlConfig $in_settings) {
|
||||||
$this->settings = $in_settings;
|
$this->settings = $in_settings;
|
||||||
$this->renderer = $in_renderer;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function handle() {
|
public function handle() {
|
||||||
echo($this->renderer->render_file(ROOT_DIR."templates/main.html", [
|
echo("Testing");
|
||||||
"title" => "Home",
|
|
||||||
"content" => file_get_contents(ROOT_DIR."templates/mockup.html"),
|
|
||||||
"footer_html" => ""
|
|
||||||
]));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue