Created
August 27, 2014 12:53
-
-
Save esedic/ab142a528f67fee23175 to your computer and use it in GitHub Desktop.
Show Joomla module inside custom code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
jimport('joomla.application.module.helper'); | |
// this is where you want to load your module position | |
$modules = JModuleHelper::getModules('header'); | |
foreach($modules as $module) | |
{ | |
echo JModuleHelper::renderModule($module); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment