From 1bc8b11ee12f371b6fe301c05a8790fd5d8e0e72 Mon Sep 17 00:00:00 2001 From: Ruben Date: Wed, 14 Sep 2016 13:33:15 +0100 Subject: [PATCH] test with faces --- www/faces.php | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 www/faces.php diff --git a/www/faces.php b/www/faces.php new file mode 100644 index 0000000..d9690b4 --- /dev/null +++ b/www/faces.php @@ -0,0 +1,33 @@ +getEm(); +$hitRepo = $em->getRepository(\EmotionHero\Models\Hit::class); +$hits = $hitRepo->findBy([], ['sadness'=>'ASC']); + +?> + + + Emotion Hero + + + +getId() . '.jpg'; + if(!file_exists($filename)) + continue; + + $img = file_get_contents($filename); + $data = base64_encode($img); + echo ""; +} +?> + +