From 3305a7d3f084065190f72c0335e84d959d45322d Mon Sep 17 00:00:00 2001 From: Fibinger Ádám <adam.fibinger@wup.hu> Date: Thu, 17 Oct 2019 15:56:19 +0200 Subject: [PATCH] Template útvonal módosítása --- form.php | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/form.php b/form.php index 5340e72..cfa9739 100644 --- a/form.php +++ b/form.php @@ -11,15 +11,15 @@ } $s->setClass('simple'); - $html_content = $twig->render('templates/overlay-base.twig', ['stripe' => $s]); + $html_content = $twig->render('overlay-base.twig', ['stripe' => $s]); file_put_contents(OVERLAY_DIR . 'simple.html', $html_content); $s->setClass('team'); - $html_content = $twig->render('templates/overlay-base.twig', ['stripe' => $s]); + $html_content = $twig->render('overlay-base.twig', ['stripe' => $s]); file_put_contents(OVERLAY_DIR . 'team.html', $html_content); $s->setClass('team-ban'); - $html_content = $twig->render('templates/overlay-base.twig', ['stripe' => $s]); + $html_content = $twig->render('overlay-base.twig', ['stripe' => $s]); file_put_contents(OVERLAY_DIR . 'team-ban.html', $html_content); } else { @@ -35,7 +35,7 @@ $teams = new \EOG\Models\TeamList(); if (file_exists(OVERLAY_DIR . 'teams.json')) { - var_dump($teams->fromJson(file_get_contents(OVERLAY_DIR . 'teams.json'))); + $teams->fromJson(file_get_contents(OVERLAY_DIR . 'teams.json')); } $var = [ @@ -45,5 +45,5 @@ 'post' => !empty($_POST['stripe']) ]; -echo $twig->render('templates/admin/stripe-form.twig', $var); +echo $twig->render('admin/stripe-form.twig', $var); -- Gitblit v1.8.0