:::
6. 在前台頁面顯示
- 前台最基本的結構為:
<?php /*-----------引入檔案區--------------*/ include_once "header.php"; $xoopsOption['template_main'] = "tad_signup_index.tpl"; include_once XOOPS_ROOT_PATH . "/header.php"; /*-----------秀出結果區--------------*/ include_once XOOPS_ROOT_PATH . '/footer.php';
-
接著請將 templates/demo_index.tpl 改名為 tad_signup_index.tpl
-
編輯 xoops_version.php 將裡面的樣板設定也修改為:
$i++; $modversion['templates'][$i]['file'] = 'tad_signup_index.tpl'; $modversion['templates'][$i]['description'] = 'tad_signup_index.tpl';
-
然後「更新」模組使設定生效。
5-5 異常處理