smarty疑惑,求解
smarty吧
全部回复
仅看楼主
level 1
星之九天
楼主
看其他人写模板的时候有这两句话:
$pattern=array('/\{\s*\$([a-zA-Z_][a-zA-Z0_9_]*)\s*\}/i');//将被替换的字符串 如{$content}
$replace=array('<?php echo $this->tpl_vars["${1}"] ?>');//被替换成的字符串
这里第二句tpl_vars["${1}"] 里面${1}是什么意思呀?
2014年07月17日 14点07分
1
level 1
星之九天
楼主
求不沉
2014年07月22日 12点07分
2
level 11
ohへyes
第一个{}包着的字符串
2014年10月10日 17点10分
3
1