*** Backup Mirror *** The web interface and JSON api for the ConnectedHumber Air Quality Monitoring Project. https://github.com/ConnectedHumber/Air-Quality-Web
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

23 lines
457 B

<?php
namespace AirQuality\Actions;
class Index {
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" => ""
]));
}
}