I have a templating system which reads tpl files and replaces anything between {} with its corresponding equivalent.
ie
$template->set_vars ('username', 'luke');
Would Change {username} to luke
My issue is having <?php echo 'london';?> in the tpl file will work but trying to get variables or functions used in the calling page will not work.
index.php may have $username = 'peter';
index.tpl with <? echo $username;?> won't echo anything