Joomla!

How to include a Joomla! 1.5 Module by hard coding it

Written by Ian Carnaghan · 12 sec read >
  • Import/Include the module helper
    jimport('joomla.application.module.helper');
  • Call the getModule method and reference it to the $module variable
    $module = & JModuleHelper::getModule('mod_search');
  • Display it in the browser
    echo JModuleHelper::renderModule($module);
  • Your code will look like this
    jimport('joomla.application.module.helper');
    $module = & JModuleHelper::getModule('mod_search');
    echo JModuleHelper::renderModule($module);

Last Updated On March 30, 2018
Written by Ian Carnaghan
I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment. Profile

Leave a Reply

avatar
  Subscribe  
Notify of