mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@302 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7407e0e16e
commit
b22aeaf783
9 changed files with 49 additions and 14 deletions
|
|
@ -42,10 +42,22 @@
|
|||
**/
|
||||
function dispInsertLayout2() {
|
||||
// 선택된 레이아웃의 정보르 구해서 세팅
|
||||
$layout = Context::get('layout');
|
||||
$layout_srl = Context::get('layout_srl');
|
||||
|
||||
// DB에 등록된 레이아웃의 정보를 가져옴
|
||||
$oLayoutModel = &getModel('layout');
|
||||
$info = $oLayoutModel->getLayoutInfoXml($layout);
|
||||
Context::set('info', $info);
|
||||
$layout_info = $oLayoutModel->getLayout($layout_srl);
|
||||
|
||||
// 등록된 레이아웃이 없으면 오류 표시
|
||||
if(!$layout_info) return $this->dispContent();
|
||||
|
||||
// xml 정보를 가져옴
|
||||
$layout = $layout_info->layout;
|
||||
$layout_info = $oLayoutModel->getLayoutInfoXml($layout, $layout_srl);
|
||||
$layout_info->layout_srl = $layout_srl;
|
||||
$layout_info->layout = $layout;
|
||||
|
||||
Context::set('layout_info', $layout_info);
|
||||
|
||||
$this->setTemplateFile('insert_layout2');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue