iwa-panda2

Manage Weather Data by International Weather Agency (Version 2)
Log | Files | Refs | README

commit 54058904ff5d1a199cffd3e18cd87e46a998ae4a
parent cffc40a19ed501d33413a5dae657e2ce9d40d944
Author: MoiBaguette <[email protected]>
Date:   Tue,  6 Jun 2023 14:08:00 +0200

some tests

Diffstat:
MModel/Key.php | 6+++++-
Mviews/panda.html | 1-
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/Model/Key.php b/Model/Key.php @@ -2,7 +2,11 @@ Class Key{ function myfunction($key):string{ $t = new Lollipop\Template(); - $data = ["var" => "<p> foo </p>"]; + //do sql query met $key + //return data als array + //geef array mee aan template + $table = "<table"; + $data = ["tabel" => $table]; return $t->template("views/panda.html", $data); } } \ No newline at end of file diff --git a/views/panda.html b/views/panda.html @@ -81,7 +81,6 @@ <div class="bar" style="height: 80px; left: 190px;"></div> <div class="bar" style="height: 160px; left: 260px;"></div> </div> - {{var}} </div> </body>