都市有情人
(都市有情人)
中级会员
 
中级会员
UID 63393
精华
0
积分 250
帖子 205
金钱 250 喜悦币
威望 0
人脉 0
阅读权限 30
注册 2005-2-25
状态 离线
|
[广告]: q
m
非常简单的phplib template问题,不能循环输出,请问...
test.php代码:
<?php
//载入template
include_once("template.inc.php");
$t = new Template;
$t->set_file("main","test.ihtml");
$t->set_block("main","show1","showa");
for($i=0;$i<15;$i++)
{
$i++;
$t->set_var("skblxan","我们");
$t->parse("showa","show1",true);
}
$t->pparse("mains","main");
?>
test.ihtml代码如下:
<!-- BEGIN show1 -->
{skblxan}
<!-- EHD show1 -->
以上程序运行时不能循环输出,请问应该怎样解决呢?
|
|