회원에게 공개되는 공간입니다. 올려진 팁이나 자료가 절대적으로 옳은 방법은 아닙니다. 다양한 방법중 하나의 방법임을 이해해 주시기 바라며, 보다 나은 방법이 있거나 궁금한 사항이 있으시면 댓글로 참여해 주시면 감사하겠습니다.
zbxe/modules/page/page_view.php 파일에서 아래 붉은 색 부분을 확인해 주세요.
<?php
/**
* @class pageView
* @author zero (zero@nzeo.com)
* @brief page 모듈의 view 클래스
**/
class pageView extends page {
var $module_srl = 0;
var $list_count = 20;
var $page_count = 10;
/**
* @brief 초기화
**/
function init() {
// 템플릿 경로 구함 (page의 경우 tpl에 관리자용 템플릿 모아놓음)
$this->setTemplatePath($this->module_path.'tpl');
}
/**
* @brief 일반 요청시 출력
**/
function dispPageIndex() {
// 권한 체크
if(!$this->grant->view)return $this->stop('msg_not_permitted');
// 템플릿에서 사용할 변수를 Context::set()
if($this->module_srl) Context::set('module_srl',$this->module_srl);
Context::set('module_info', $this->module_info);
Context::set('page_content', $this->module_info->content);
$this->setTemplateFile('content');
}
}
?>
----------------------------------------------------------------------------
if(!$this->grant->view)return $this->stop('이부분을 바꿔주세요');
다국어 사이트가 아니라 한국어 사이트 하나만 운영하시기 때문에 이곳을 바꿔도 상관없을듯 합니다.










XE강좌

Tip/Tech 
