New answers tagged


@Eoin's snippet works perfectly other than it should be JFactory. // Load the namespacing for Factory (the new way instead of JFactory) use Joomla\CMS\Factory; // Load the module position <?php echo JFactory::getApplication()->getDocument()->loadRenderer('modules')->render("logo"); ?>


This solution helped me to pass xml field data to class in helper.php. public static function xyz(){ $module = JModuleHelper::getModule('mod_name'); $params = new JRegistry(); $params->loadString($module->params); $xyz = $params->get('xyz'); return $xyz; } mod_name -> this is the module name. Please replace this. $params->...

Top 50 recent answers are included