// 결과가 있으면 각 문서 객체화를 시킴 if(count($output->data)) { foreach($output->data as $key => $attribute) { $document_srl = $attribute->document_srl; $oDocument = null; $oDocument = new documentItem(); $oDocument->setAttribute($attribute, false); $GLOBALS['XE_DOCUMENT_LIST'][$oDocument->document_srl] = $oDocument; $category_list=$oDocumentModel->getCategoryList($attribute->module_srl); $oDocument->category_title=$category_list[$oDocument->get('category_srl')]->title; $document_list[$key] = $oDocument; } $oDocumentModel->setToAllDocumentExtraVars(); } else { $document_list = array(); }
list.html에서 {$oDocument->category_title}로 받음