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

No Comments
  • 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);

Image Credits: Photo by Isis França on Unsplash.

Last Updated On March 30, 2018

Related Articles

No results found

Leave a Reply

avatar
  Subscribe  
Notify of
Menu
Copy link