I was wondering how can we load a module inside a module, in Joomla 3 programatically.


1 Answer 1


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);
  • Now I wonder how to load by module id...
    – miguelmpn
    Sep 11, 2015 at 9:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.