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

H

How Can We Help?

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

About the author

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.

About Author

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.

Follow Me