mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-19 11:19:56 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@680 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e8061da8f7
commit
d2a25dbbdc
9 changed files with 53 additions and 12 deletions
|
|
@ -91,8 +91,22 @@
|
|||
// 관리자 관련 정보 세팅
|
||||
$this->initAdmin();
|
||||
|
||||
// GET parameter에서 module_srl을 가져옴
|
||||
$module_srl = Context::get('module_srl');
|
||||
|
||||
// module model 객체 생성
|
||||
if($module_srl) {
|
||||
$oModuleModel = &getModel('module');
|
||||
$module_info = $oModuleModel->getModuleInfoByModuleSrl($module_srl);
|
||||
if($module_info->module_srl == $module_srl) Context::set('module_info',$module_info);
|
||||
else {
|
||||
unset($module_info);
|
||||
unset($module_srl);
|
||||
}
|
||||
}
|
||||
|
||||
// module_srl 값이 없다면 그냥 index 페이지를 보여줌
|
||||
if(!Context::get('module_srl')) return $this->dispAdminContent();
|
||||
if(!$module_srl) return $this->dispAdminContent();
|
||||
|
||||
// 레이아웃이 정해져 있다면 레이아웃 정보를 추가해줌(layout_title, layout)
|
||||
if($this->module_info->layout_srl) {
|
||||
|
|
@ -131,14 +145,12 @@
|
|||
unset($module_srl);
|
||||
}
|
||||
}
|
||||
|
||||
if(!$module_srl) {
|
||||
$oDB = &DB::getInstance();
|
||||
$module_srl = $oDB->getNextSequence();
|
||||
}
|
||||
|
||||
Context::set('module_srl',$module_srl);
|
||||
Context::set('module_info', $module);
|
||||
|
||||
// 에디터 모듈의 getEditor를 호출하여 세팅
|
||||
$oEditorView = &getView('editor');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue