묻고답하기

쿼리호출때문에 죽겠습니다~

리스트하나 뽑아오는건데 죽어라 안되네요~

그냥 조건이고 뭐고 필요없으니까 그냥 가져오기만 했으면 하는데 ㅠㅠ

호출위치는 모듈 보드에 스킨 header.html부분입니다 ㅠㅠ

여태까지 작성했던 코드를 쭈르륵 보여드릴테니 좀 봐주세요 ㅠㅠㅠ

1. 스킨 header부분
{@$obj->mid = "area"}
{@$obj->sort_index = "title"}
{@$oArea = &getModel('document')}
{@$areaData = $oArea->getAllList($obj)}
<!--@foreach($areaData as $area)-->
{$area->get(title)}
<!--@end-->


2. document.model

function getAllList($obj) {
  
            // module_srl 대신 mid가 넘어왔을 경우는 직접 module_srl을 구해줌
            if($obj->mid) {
                $oModuleModel = &getModel('module');
                $obj->module_srl = $oModuleModel->getModuleSrlByMid($obj->mid);
                unset($obj->mid);
            }
  
            $args->module_srl = $obj->module_srl;
            $args->category_srl = $obj->category_srl;
            $args->sort_index = $obj->sort_index;
            $args->order_type = 'asc';

            $output = executeQueryArray('document.getAllList', $args);

            // 결과가 없거나 오류 발생시 그냥 return
            if(!$output->toBool()||!count($output->data)) return $output;

            foreach($output->data as $key => $attribute) {
                $document_srl = $attribute->document_srl;

                $All_list = null;
                $All_list = new documentItem();
                $All_list->setAttribute($attribute);

                $output->data[$key] = $All_list;
           
            }
            return $output;
       }


3.getAllList.xml 파일

<query id="getAllList" action="select">
    <tables>
        <table name="documents" />
    </tables>
    <columns>
        <column name="*" />
    </columns>
    <conditions>
        <condition operation="in" column="module_srl" var="module_srl" filter="number" />
        <condition operation="equal" column="category_srl" var="category_srl" pipe="and" />
    </conditions>
</query>


증상은 이러합니다.

1. {$area->get(title)}와 같이 호출시 페이지 오류. (페이지안뜸)

2. 결과값이 있나 해서 안에 임의의 텍스트를 지정해보니 여러번 뜸.

3. 왜인지 모르겠음.

제가 잘못한게있으면 좀 가르켜주십쇼 ㅠㅠ
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
김태헌687 글쓰기 모드로 바로 링크 시 [1] 2010.08.18 by 하늘종
ESSB 생초보가 질문 드립니다. [1] 2010.08.18 by LutZ
테라커뮤니티 게시판 필드 변경하는 방법좀 알려주세요 [2] 2010.08.18 by chohee
mindpainter if문으로 브라우저가 오페라 일때를 어떻게 표현해야 할까요?  
스카이피아 위젯 스킨 목록에서.... [1] file 2010.08.18 by mindpainter
Kurtcibain 로그인회원가입을 스킨없이 쓰는 방법을 알고 싶습니다. [1] 2010.08.18 by mindpainter
에스토리아 갤러리 게시판 어떻게 만드나요? [1] 2010.08.18 by Kurtcibain
무풍여왕 서브메뉴 페이지 인식 안되요  
Pw_c 스킨 중에 xe_simple_gallery 라는 스킨  
다레사마 이메일형식의 아이디에 관련된 문제입니다. [2] 2010.08.18 by 다레사마
alljoy fckeditor 에디터 콤퍼넌트에대해서... file  
엔지비 XE 를 설치시 사용중인 MY SQL 에 사용할 수 있나요? [3] 2010.08.18 by 엔지비
ESSB 관리자 아이디로 로그인이 안됩니다 ㅠ [1] 2010.08.18 by 유샤인
공룡알후라이 댓글이 저장되지 않습니다. [1] 2010.08.18 by 공룡알후라이
NELS 익스플로어6에서 안되는기능들... [1] 2010.08.18 by misol
정준영590 웹진, 갤러리형의 최근 문서 출력 위젯에서... [4] file 2010.08.18 by 싱글킨
붕어짱 xe 1.1.5 버젼에서 문제가 발생하여 도움을 바랍니다. [1] 2010.08.18 by LutZ
물이랑 제발 초보를 좀 도와주셔요 ㅠ_ㅠ [1] 2010.08.18 by LutZ
에스토리아 그림올려서 그림클릭하면 확대되는... [1] 2010.08.18 by LutZ
artist055 제가 만든 xml template를 xe core 어디에 넣어야할지 모르겠습니다.