JModuleHelper::_load(); // Load all modules $module = JModuleHelper::_load("mod_custom", $params);
JModuleHelper::_load(); $modules = JModuleHelper::getModules(); foreach ($modules as $module) { echo $module->title; }In this example, we load all available modules using the JModuleHelper::_load() method and then loop through the resulting array to output each module's title. JModuleHelper::_load is a method that is included in the Joomla platform and is part of the package library. This helper method can be accessed via the JModuleHelper class in PHP.