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

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

Leave a Reply

avatar
  Subscribe  
Notify of