我有文本存储在我的数据库中:
Your email is: {$email} and your name is {$name}.
$text = get from db this field;
我从数据库中读取了这个字段
我用聪明分配这个:
$smarty->assign('text', $text);
$smarty->assign($name, 'maria');
$smarty->assign($email, 'maria@email.it');
并在我的 html 页面中可视化:
{$text}
结果是:
Your email is: {$email} and your name is {$name}.
我的问题是 Smarty 不会在变量中呈现变量。
有人能帮我吗?