$module = JModuleHelper::getModule('mod_test'); $layout = JModuleHelper::getLayoutPath($module->module, 'default'); echo $layout;
$module = JModuleHelper::getModule('mod_test'); $layout = JModuleHelper::getLayoutPath($module->module, 'custom-layout'); echo $layout;This code will output the file path for the custom-layout file of the mod_test module. Package Library: JModuleHelper is part of the Joomla Platform library, which is included in the Joomla CMS package. It is a standalone library and can also be used in other PHP applications. Therefore, the package library of JModuleHelper is Joomla Platform.