To add some common ground. I need to transfer 3 variables from a module to my template when the sites loading. In my module I get 3 links to specific images and they need to be included in the template. So I tried to do in my module:
$session = Factory::getSession(); $session->set('image1', $value);
and in my index.php:
$session = Factory::getSession(); $variable = $session->get('image1');
The issue is that this only works if I refresh my page. I understand that the template is loaded first and the module is loaded second so the template reads the variable before it is set. The question is: Is there away around this? How can I accomplish what I want to?