摘要:
1.首字母大写 capitalize: {$article_title | capitalize}2.字符串连接 cat: {$article | cat:"yesterday"}3.日期格式化 date_format: {$yesterday | date_form... 阅读全文
摘要:
1.注释 {* 注释美容 *}2.输出已赋值变量 (1).变量为字符串: {$article_title} (2).变量为一维数组 : {$arr.title} 或 {$arr[title]} 变量为多维数组 : {$arr.article.title} 或 {$arr[article][tit... 阅读全文
摘要:
//五配置$smarty = new Smarty();$smarty->left_delimter = '{';$smarty->right_delimter = '}'; //左右定界符配置$smarty->template_dir = 'tpl'; //模板文件存放目录$smarty->c... 阅读全文