I was wondering how can we load a module inside a module, in Joomla 3 programatically.
Joomla Stack Exchange is a question and answer site for Joomla! administrators, users, developers and designers. It only takes a minute to sign up.Sign up to join this community
After some digging I found this code. Most pages I visited are using outdated code, here is the one that worked for me.
$doc = JFactory::getDocument(); $renderer = $doc->loadRenderer('modules'); $position = 'moduleposition'; $options = array('style' => 'raw'); echo $renderer->render($position, $options, null);