Hello,
I battled with a similar issue for quite some time and noticed the following:
Lets say I want to display a debug variable in the header template like:
HTML Code:
<div>$debugMsg</div>
That var must be set BEFORE global_setup_complete. For example, if I make the var
PHP Code:
$debugMsg = "Test Message";
in the global_setup_complete hook, the header template will never display anything. However, if I move the above php to global_start, it works as intended.
This is great if you want your code to be in global_start, but what if you need it later? Does anyone know a simple way to change the already processed templates?