Created
June 27, 2014 15:48
-
-
Save marcosfreitas/fa386b9c811f30c59e99 to your computer and use it in GitHub Desktop.
How to load a module created on Joomla calling by the name and title.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Carregando um módulo pelo nome | |
*/ | |
if(!empty($anunciante_gk5)): | |
$modName = "mod_news_pro_gk5"; | |
$modTitle = $anunciante_gk5; | |
$document = JFactory::getDocument(); | |
$renderer = $document->loadRenderer('module'); | |
$mod = JModuleHelper::getModule($modName, $modTitle); | |
$options = array('style' => 'sp_flat'); | |
echo $renderer->render($mod, $options); | |
endif; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment