1
나는 joomla 사이트에 대한 몇 가지 모듈을 만드는 임무를 받고 있지만 joomla (전형적인, 오른쪽)에 대한 경험이 없습니다. 어쨌든 나는 배변과 진동 장치가 만날 때까지 약간의 시간이있어 그래서 나는 joomla에 익숙해졌습니다. joomla 사이트에서 mod_helloworld 튜토리얼을 사용할 수 있었지만 확장 관리자에 모듈이 표시되지 않습니다. 모든 도움/설명을 부탁드립니다. ,Joomla 초보자 모듈 질문
이 모듈 디렉토리에 mod_hellworld 디렉토리를 만들고 거기에 mod_helloworld.php, helper.php, mod_helloworld.xml하는 tmpl 디렉토리와 배치 default.php 파일을 추가 : 이것은 내가 무슨 짓을
.
다음은 XML 파일입니다.
<?xml version="1.0" encoding="utf-8"?>
<extension type="module" version="1.6.0" client="site" method="upgrade">
<name>Hello World!</name>
<author>Steve Suranie</author>
<version>1.6.0</version>
<description>Simple Hello World module.</description>
<files>
<filename module="mod_helloworld">mod_helloworld.php</filename>
<filename>mod_helloworld.xml</filename>
<filename>index.html</filename>
<filename>helper.php</filename>
<filename>tmpl/default.php</filename>
<filename>tmpl/index.html</filename>
</files>
</extension>
mod_helloworld.php
<?php
class modHelloWorldHelper {
/**
* Retrieves the hello message
*
* @param array $params An object containing the module parameters
* @access public
*/
function getHello($params) {
return 'Hello, World!';
}
}
?>
승리를위한 sv_in! 2 분 동안 수락 할 수 없지만 그렇게 할 것입니다. – PruitIgoe