mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-20 19:02:14 +09:00
기존의 각 모듈 생성시 기본 설정하는 것을 없애고 시작 모듈 개념을 메인 사이트에서도 적용.
메인/ 가상 사이트 모두 관리자 페이지에서 시작 모듈을 설정하는 구조로 변경 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6152 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
bd3e3241ec
commit
714d618523
45 changed files with 169 additions and 169 deletions
|
|
@ -239,11 +239,14 @@
|
|||
$output = executeQuery("admin.getCommentDeclaredCount", $args);
|
||||
$status->commentDeclared->total = $output->data->count;
|
||||
|
||||
$site_args->site_srl = 0;
|
||||
$output = executeQuery('module.getSiteInfo', $site_args);
|
||||
Context::set('start_module', $output->data);
|
||||
|
||||
Context::set('status', $status);
|
||||
|
||||
Context::set('layout','none');
|
||||
$this->setTemplateFile('index');
|
||||
//$this->setTemplateFile('a');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -262,6 +265,21 @@
|
|||
|
||||
Context::set('ftp_info', Context::getFTPInfo());
|
||||
|
||||
$oModuleModel = &getModel('module');
|
||||
$site_args->site_srl = 0;
|
||||
$list = $oModuleModel->getMidList($site_args);
|
||||
$mid_list = array();
|
||||
if(count($list)) {
|
||||
foreach($list as $key => $val) {
|
||||
$mid_list[$val->module][$key] = $val;
|
||||
}
|
||||
}
|
||||
Context::set('mid_list', $mid_list);
|
||||
|
||||
$site_args->site_srl = 0;
|
||||
$output = executeQuery('module.getSiteInfo', $site_args);
|
||||
Context::set('start_module', $output->data);
|
||||
|
||||
Context::set('layout','none');
|
||||
$this->setTemplateFile('config');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue