PHP in Smarty

I must be missing something basic. My PHP entries in .tpl files don’t seem to work at all - are ignored.



And if I use “$smarty->” everything after the “>” is displayed on the page.



Here’s a sample that does that:


$all_tpl_vars = $smarty->get_template_vars();
print_r($all_tpl_vars);
?>

Output to screen:
get_template_vars(); print_r($all_tpl_vars); ?>


Come on ... make me feel stupid!

THe answer is that the Smarty documentation is wrong.



It’s {php} and {/php} not the standard PHP syntax of