It might be the lack of sleep but… This is not supposed to work?
I’ve never had to actually write my own function in EE so I might be missing something super obvious… but I’m doing something a little complicated and need to get this working. I’ve simplified the test to the max… Thanks!
<?php
$t = "test";
function testing() {
global $t;
if (isset($t)) {
echo "yep";
} else {
echo "nope";
}
}
?>
<?testing();?>
This echoes “nope” ...
The real case scenario is a function to which I need to pass some EE template tags as arguments…
