Skip to content

Instantly share code, notes, and snippets.

@esedic
Created August 27, 2014 12:53
Show Gist options
  • Save esedic/ab142a528f67fee23175 to your computer and use it in GitHub Desktop.
Save esedic/ab142a528f67fee23175 to your computer and use it in GitHub Desktop.
Show Joomla module inside custom code
<?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