共有 0 个贴子
没有任何数据可供显示
| 开源项目社区 | 当前位置 : |
|
| www.trustie.net/open_source_projects | 主页 > 开源项目社区 > thinkeat |
|
thinkeat
|
| 0 | 0 | 0 |
| 贡献者 | 讨论 | 代码提交 |
#ThinkEAT is designed for beginners build a framework of open-source, The advantage of the buffer / simple framework
Download MYSQL_cache libs http://code.google.com/p/thinkeat/downloads/detail?name=mysql_cache.cls.php&can=2&q=#makechanges
ICQ:263060803
QQ:83085767
Quick Usage
<?php
include(dirname(FILE).'/base.php');
$debug->startTimer('index_home');
$tpl->debug_tpl = true;
$style = "class='active'";
$num = $cache->getCount('goods','gid');
$sql = 'SELECT * FROM '.tname('goods')." WHERE gid LIMIT 0,10";
$link = $cache->getAllCached($sql,'FILEFIRST');
$tpl->caching = true;
if(!$tpl->is_cached('home.dwt')){
for($i=0;$igetCount('goods','gid');
}
$resources = $cache->getAll('SELECT * FROM '.tname('goods'));
$tpl->assign('message',$goods_num);
}
$debug_time = "Processed in:".$debug->stopTimer('index_home');
$html_cache = load_plugins('html_cache',true); //load plugins param:class name, open help
$tpl->assign('queryCount',$cache->queryCount);
$tpl->assign('num',$num);
$tpl->assign('style',$style);
$tpl->assign('link',$link);
$tpl->assign('debug',$debug_time);
$tpl->display('home');
?>
标签: