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