- 博客(5)
- 资源 (6)
- 收藏
- 关注
转载 smarty 的模版配置文件的使用
Variables loaded from config files Variables that are loaded from the config files are referenced by enclosing them within hash marks (#), or with the smarty variable $smarty.config. The second synt
2012-11-05 10:08:13 437
转载 smarty 模版参数中的变量使用及变量的运算
SYNTAX EXAMPLES: {func var="test $foo test"} <-- sees $foo {func var="test $foo_bar test"} <-- sees $foo_bar {func var="test $foo[0] test"} <-- sees $foo[0] {func var="test $foo[bar] test"}
2012-11-05 10:01:33 881
转载 smarty 输出前内容过滤
// put this in your application function protect_email($tpl_output, &$smarty) { $tpl_output = preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!', '$1%
2012-11-05 09:55:55 551
转载 Smarty 缓存控制
require('Smarty.class.php'); $smarty = new Smarty; $smarty->caching = true; $my_cache_id = $_GET['article_id']; if(!$smarty->is_cached('index.tpl',$my_cache_id)) { // No cache available, do var
2012-11-05 09:52:58 410 1
原创 smarty block 功能实现 局部缓存
HTML部分 {nocache} {**some process**} {/nocache} nocache就是自定义block实现区块内数据的控制 function smarty_block_nocache($param, $content, $smarty) { return $content; } $smarty->register_bloc
2012-11-05 09:48:41 429
php_redis_5.5_vc11
2014-01-28
tcpdf用的droidsansfallback字体文件
2013-05-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人