报错:
Template Error: loadfile: INBLOCK is not a valid handle.
Halted.
isTestFace.php
<?php
//如果安装在当前目录下可以不加路径
include "E:/myapplication/php/template.inc";
$template = new Template(".");
//以下设置模板名柄
$template->set_file("body", "./templates/isTestFace.htm");
$template->set_Var("TEXT_TEST_1","测试1");
$template->set_Var("VALUE_TEST_1",$this->test1);
$template->set_Block("body","OUTBLOCK","OUTBLOCKS");
$template->set_Block("OUTBLOCK","INBLOCK","INBLOCKS");
for($i=0;$i<6;$i++){
$template->set_Var("TEXT_BLOCK_TITLE","块".$i);
for($j=0;$j<6;$j++){
$template->set_Var("TEXT_INBLICK","内块".$j);
$template->parse("INBLOCKS","INBLOCK",true);
}
$template->parse("OUTBLOCKS","OUTBLOCK",true);
$template->set_Var("INBLOCK","");
}
?>
isTestFace.htm
{TITLE}
{ERROR}
| 块测试 |
| {TEXT_BLOCK_TITLE} |
| {TEXT_INBLICK} |
|
|
|
出了什么问题啊
请高手不吝赐教,谢谢!