mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-25 21:32:51 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@163 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ad4cfd30f4
commit
cac2d957b2
6 changed files with 41 additions and 11 deletions
|
|
@ -36,7 +36,24 @@
|
|||
* @brief 관리자 메인 페이지 출력
|
||||
**/
|
||||
function dispIndex() {
|
||||
$this->setTemplateFile('index');
|
||||
// mo(module), act 변수값이 넘어오면 해당 모듈을 실행
|
||||
$mo = Context::get('mo');
|
||||
$act = Context::get('act');
|
||||
|
||||
if($mo && $mo != 'admin' && $act) {
|
||||
$oAdminController = &getController('admin');
|
||||
$oModule = &$oAdminController->procOtherModule($mo, $act);
|
||||
}
|
||||
|
||||
// 만약 oModule이 없으면 관리자 초기 페이지 출력
|
||||
if(!$oModule || !is_object($oModule)) {
|
||||
$this->setTemplateFile('index');
|
||||
|
||||
// oModule이 정상이라면 해당 모듈의 template path, file을 가로챔
|
||||
} else {
|
||||
$this->setTemplatePath($oModule->getTemplatePath());
|
||||
$this->setTemplateFile($oModule->getTemplateFile());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue