2007年8月28日 星期二

如何新增LifeType的資料庫欄位

以LifeType1.2.4版為主,版本的差異不會太大

假設現在要新增兩項使用者的資料,且在使用者註冊的時候就寫進資料庫

Step1: 必須先修改註冊頁面的欄位,位置在lifetype資料夾底下的templates\summary\registerstep1.template

Step2: 新增資料庫中使用者資料表的欄位

Step3: 接下來必須modify 5個檔案

檔案如下:
1.userinfo.class.php
2.dofinishregister.class.php
3.registeraction.class.php
4.dousercreation.class.php
5.douserregister.class.php

參考資料
LifeType的MVC架構: http://wiki.lifetype.net/index.php/Model-View-Controller_in_pLog