From ff4d832ad506f2b53573a489e6f1da213c546fb5 Mon Sep 17 00:00:00 2001 From: Christiaan Goossens Date: Wed, 29 Mar 2017 11:39:26 +0200 Subject: [PATCH] Update static helpers --- src/Application/Helper/Klant.php | 2 +- src/Application/Helper/Rekeningen.php | 5 +++-- templates/index.phtml | 21 +++++++++++++++++++-- 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/src/Application/Helper/Klant.php b/src/Application/Helper/Klant.php index edc2ba1..88ad9de 100644 --- a/src/Application/Helper/Klant.php +++ b/src/Application/Helper/Klant.php @@ -18,7 +18,7 @@ use Inforbank\Application; class Klant { - public function getCurrentUser() + public static function getCurrentUser() { $container = Application::getContainer(); $user = $container->auth->getUserID(); diff --git a/src/Application/Helper/Rekeningen.php b/src/Application/Helper/Rekeningen.php index 31a1438..4cda0a0 100644 --- a/src/Application/Helper/Rekeningen.php +++ b/src/Application/Helper/Rekeningen.php @@ -18,7 +18,7 @@ use Inforbank\Application; class Rekeningen { - public function getCurrentUserRekeningen() + public static function getCurrentUserRekeningen() { $container = Application::getContainer(); $user = $container->auth->getUserID(); @@ -32,7 +32,8 @@ class Rekeningen foreach ($rekeningen as $rekening) { $returnArray[] = array( - "rekeningnr" => $ibanhelper->getIBAN($rekening['rekeningnr']), + "iban" => $ibanhelper->getIBAN($rekening['rekeningnr']), + "nr" => $rekening['rekeningnr'], "saldo" => (double) $rekening['saldo'] ); } diff --git a/templates/index.phtml b/templates/index.phtml index 5e65b95..eae0089 100644 --- a/templates/index.phtml +++ b/templates/index.phtml @@ -1,6 +1,23 @@ -
-
+ + + + + + + + + + + + + +
IBANSaldoTIJDELIJK