Hello guys I am new to smarty and it seems I can't even get the sample code to work. It looks like a super simple question but I've been stuck in this for hours.
I assigned a couple of values in the php file but when I try to display the value on the front end, it shows up the variable names instead of the values. Below is the php file I got:
$smarty = new Smarty;
$smarty->template_dir = './tmp';
$smarty->compile_dir = './tmp_c';
$smarty->assign('name', 'george smith');
$smarty->assign('address', '45th & Harris');
// display it
Below is the html output
like I said, the $name and $address value can never be read by the html file. Any idea what might goes wrong here?