<?php /** * Hello World! Module Entry Point * * @package Joomla.Tutorials * @subpackage Modules * @license GNU/GPL, see LICENSE.php * @link http://docs.joomla.org/J3.x:Creating_a_simple_module/Developing_a_Basic_Module * mod_helloworld is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. */ // No direct access defined('_JEXEC') or die; // Include the syndicate functions only once require_once dirname(__FILE__) . '/helper.php'; /** * This retrieves the lang parameter we stored earlier. Note the second part * which states to use the default value of 1 if the parameter cannot be * retrieved for some reason **/ $language = $params->get('lang', '1'); $hello = modHelloWorldHelper::getHello($language); //$hello = modHelloWorldHelper::getHello($params); require JModuleHelper::getLayoutPath('mod_helloworld');
<?php /** * @package Joomla.Module * @copyright Joomla 2016 * @license GNU/GPU */ // No direct access defined('_JEXEC') or die; // Include the syndicate functions only once require_once dirname(__FILE__) . '/helper.php'; /** * getHello parameters komt uit de helperfile * Dus route... Class van de Helper File -> mod_helloworld.php -> default tmpl * */ $hello = modHelloWorldHelper::getHello($params); require JModuleHelper::getLayoutPath('mod_helloworld');
<?php defined('_JEXEC') or die; /** * @version $Id$ * @package HelloWorld * @subpackage mod_helloworld * @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ require_once dirname(__FILE__) . '/helper.php'; $hello = modHelloWorldHelper::getHello(); require JModuleHelper::getLayoutPath('mod_helloworld', $params->get('layout', 'default'));