改变smarty的定界符$smarty->right_delimiter=//$smarty->left_delimiter=

-Example 3.9. 改变定界符的例子

left_delimiter = '';  $smarty->assign('foo', 'bar'); $smarty->assign('name', 'Albert'); $smarty->display('example.tpl');  ?>    

模板:

Welcome  to Smarty 

转载于:https://www.cnblogs.com/feng12345/p/5466348.html

你可能感兴趣的:(改变smarty的定界符$smarty->right_delimiter=//$smarty->left_delimiter=)