如何使用串联的字符串分配本地模板变量,如下所示:
{$yes_src=const1.'yes'.const2}
以下方式在代码中使用{$yes_src}.
{$yes_src}
php smarty
php ×1
smarty ×1