From Joomla! Documentation

Revision as of 09:59, 7 November 2008 by Batch1211 (Talk | contribs)


void renderModule ( $module, [ $attribs = array()])


Argument Data type Description Default
$module Object The module object see JModuleHelper/getModule
$attribs Array $attirbs['style'] defines which chrome will frame the output of the module. See: What is module chrome?

What does this method do?

This method will return the output html of the module. Language variables (JText::_('Say something');) are being translated. Furthermore the output of the module will be framed by a chrome (See: What is module chrome?). The default name of the chrome is 'none'.


In the following example we'd like to load the Login module, and put it into the xhtml chrome:


See also