php+ smarty 常用基本设定
为了避免跟html页面中嵌入js脚本文件(常用{}框)编写代码段受影响,
故将原先包住变数的{}改成<{ 跟 }>。
例如原先使用{$hello},将变成<{$hello}>,也比较美观
Smarty-3.1.19_20140630\libs\Smarty.class.php
修改成 |
public $left_delimiter = "<{"; public $right_delimiter = "}>"; |
为了避免跟html页面中嵌入js脚本文件(常用{}框)编写代码段受影响,
故将原先包住变数的{}改成<{ 跟 }>。
例如原先使用{$hello},将变成<{$hello}>,也比较美观
Smarty-3.1.19_20140630\libs\Smarty.class.php
修改成 |
public $left_delimiter = "<{"; public $right_delimiter = "}>"; |