git-svn-id: http://xe-core.googlecode.com/svn/trunk@386 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-03-13 02:50:31 +00:00
parent b313d5b5c4
commit c74bdb90fa
7 changed files with 81 additions and 9 deletions

View file

@ -14,7 +14,15 @@
* @brief 초기화
**/
function init() {
// 관리자 모듈에서 요청중이면 initAdmin(), 아니면 initNormal()
if(Context::get('module')=='admin') $this->initAdmin();
else $this->initNormal();
}
/**
* @brief 관리자 페이지의 초기화
**/
function initAdmin() {
// 멤버모델 객체 생성
$oMemberModel = &getModel('member');
@ -32,8 +40,14 @@
// template path 지정
$this->setTemplatePath($this->module_path.'tpl.admin');
}
return true;
/**
* @brief 일반 페이지 초기화
**/
function initNormal() {
// template path 지정
$this->setTemplatePath($this->module_path.'tpl.admin');
}
/**