摘要:
Example 5-8. date_format[日期格式]Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 index.php: 2 3 $smarty = new Smarty; 4 $smarty->assign('yesterday', strtotime('-1 day')); 5 $smarty->display('index.tpl'); 6 7 index.tpl 阅读全文