cate.php,可以直接複製main.php來用,架構都一樣。templates/下op_main_xxx.tpl等四個實體檔案複製一份,並重新命為op_cate_xxx.tpl即可。templates/下op_cate_xxx.tpl等四個檔案內容中的樣板標籤為<{$my_action_cate_xxx}>。my_action_cate資料表做成模型物件:
$Model = new TadModData('my_action_cate');
action_cate資料表的主索引(Primary Key)「cate_id」templates\op_cate_create.tpl)
templates\op_cate_index.tpl)
templates\op_cate_show.tpl)
templates\op_cate_edit.tpl)