I want to show a component in the backend index page. I have tried using the following methods in the index.php file but it doesn't show.
<?php $doc = JFactory::getDocument();
$module = JModuleHelper::getModule('mod_hello_ajax_world',$title);
//get and update params
$params = new JRegistry;
$params->loadString($module->params);
$params->set('some_param_of_module',$some_value);
//render module
$renderer = $doc->loadRenderer('module');
$content = $renderer->render($module, array('params'=> $params));
print $content; ?>
Also tried this:
<jdoc:include type="module" name="hello_ajax_world"/>
But it doesn't work either.
My module has a client type administrator.
What am I doing wrong?
Thanks in advance.