问题:定义了一个smarty表单,但在模块中显示不出相关内容(已在管理后台中进行过模块更新),请大家帮忙看看代码是否有问题。
与表单相关的代码如下:
(1)xoops_version.php
$modversion['templates'][1]['file'] ="templates/booklist_main.html";
$modversion['templates'][1]['description'] ='';
(2)index.php
<?php
require "../../mainfile.php";
require XOOPS_ROOT_PATH."/header.php";
$xoopsOption['template_main'] = "booklist_main.html";
$xoopsTpl->assign('bookname', "my book name");
require XOOPS_ROOT_PATH."/footer.php";
?>
(3)booklist_main.html
<table>
<tr>
<td>name:</td>
<td><{$bookname}></td>
</tr>
</table>