PDA

View Full Version : Simple Template Variable Help Needed


warrentr2
06-17-2009, 10:30 PM
Hello,
I literally just need to know how to include 1 php variable in a template properly. It doesn't need to be cached, it just needs to work!!!

I have a global_start plugin that sets this variable:
$domain='sub.whatever.com';

I then use this variable in the navbar template like:
$domain
And I also tried
{$domain}

It works on SOME pages, but other pages just comes up blank!

Notes: It is specifically a template issue. I have had my global start print out this variable while in debug mode and it is always being set the same way. Also, I have enabled printing template names as html comments, and it is always calling the navbar template, but sometimes the $domain var is just empty :(


Any ideas?