Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试test {$testvar} ...使用此方法在 smarty 变量中插入包含各种 smarty 变量和其他文本()的字符串
test {$testvar} ...
$this->tpl()->assign('sCurrentView',$test);
但是 smarty 不解析内容并将 smary 变量显示为文本。
我究竟做错了什么?这不工作吗?
对我来说似乎是一个小语法错误。
$smarty_object->assign('wanted_template_name', $value);