This code
$title = 'Mortgage Calculator';
$name = 'mod_mortgagecalc';
$document = &JFactory::getDocument();
$renderer = $document->loadRenderer('module');
$_params = array('style'=>'-2');
$mod =& JModuleHelper::getModule($name, $title);
$content = $renderer->render($mod, $_params);
echo $content;
works fine for a simple module.
However if you try and load something a little more complicated it fails, i try ;
$name = 'mod_jea_emphasis';
$document = &JFactory::getDocument();
$renderer = $document->loadRenderer('module');
$_params = array('style'=>'-2');
$mod =& JModuleHelper::getModule($name, $title);
$content = $renderer->render($mod, $_params);
echo $content;
in the mod_jea_emphasis directory i have the following files;
helper.php
mod_jea_emphasis.php
what else do I need to include ?
Thanks,