joomla 웹 사이트를 이전 할 때 새로운 기능으로, 오류가 발생했습니다. 내가 아래의 오류를 제공하는 웹 사이트 상단 메뉴를로드 할 때. 나머지 웹 사이트는 정상적으로 작동합니다.Virtualmin 서버에서 Joomla 2.5 loadRenderer 모듈 오류가 발생했습니다.
희망의 사람이 나를 안내 할 수 있습니다.
오류 아래에 던지는 톱 메뉴.
loadRenderer('module');
$params = array('style'=>$style);
$contents = '';
foreach (JModuleHelper::getModules($position) as $mod) {
$contents .= $renderer->render($mod, $params);
} // this part allows html characters to show correctly
echo html_entity_decode($contents);
?>
다음은 확실히 오류 메시지가 아니라 소스 코드가 아닙니다 코드
<?php endif; ?>
<div id="blankdiv"></div>
<nav class="topMenu">
<?
// extra code to make this work
$style = -2; // set the style
$position = "mainmenu"; // set the position of the modules to be loaded
// end of extra code
$document = &JFactory::getDocument();
$renderer = $document->loadRenderer('module');
$params = array('style'=>$style);
$contents = '';
foreach (JModuleHelper::getModules($position) as $mod) {
$contents .= $renderer->render($mod, $params);
}
// this part allows html characters to show correctly
echo html_entity_decode($contents);
?>
</nav>
</section>
문제를 더 잘 이해할 수 있도록 가능한 모든 세부 정보를 제공하십시오. 예를 들어, 오류 메시지는 다음과 같습니다. 주요 중요성. – mkilmanas
불완전한 질문에 사과드립니다. 이미 질문을 편집하십시오. u는 loadrenderer 오류를 보여줍니다. 어떻게 해결할 수 있습니까? – KuganMV