As I said in the subject I need to parse a csv inside my theme Theme.php inside root folder of the theme and send all the parsed data to a specific template.
theme_folder
ThemeTemplate.php
templates
template.html.twig(the one I need to send parsed data to)
My Theme.php has the following content:
<?php
namespace Grav\Theme;
use Grav\Common\Theme;
class ThemeTemplate extends Theme
{
////read csv here and send all parsed data to template.html.twig
}
?>
Any suggestions/examples in order to achieve this?
Thank you!