Hi all,
I couldn’t work on my site a while and now came back to it. So, after upgrading PHP to 8.0.13 I updated Kirby via Composer from 3.5 to 3.6. Everything went smooth but a few things broke, so I am trying to figure out what and why
Currently I struggle with the question why I get an “Undefined variable” error in my template when I try to echo the variable I defined within the corresponding controller. If I move the same variable into the template I get no error at all. I already reduced both files to this:
Controller
$info = "foobar";
Template
<?php if ($info): ?>
<div><?= $info ?></div>
<?php endif ?>
I am probably missing something but currently I’m not seeing it. Can anyone help me look in the right direction?