<?php namespace Garradin; use Garradin\Plugin\RecusFiscaux\Services; // liste du total des versements par personne $_SESSION['lesVersementsTotaux'] = Services::getVersementsTotaux("2021"); // préparation de l'affichage $tpl->assign('lesVersementsTotaux', $_SESSION['lesVersementsTotaux']); $tpl->assign('plugin_css', ['style.css']); // envoyer au template $tpl->display(PLUGIN_ROOT . '/templates/index.tpl');