| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Application |
JModuleHelper |
renderModule |
renderModule() |
Never | Work in Progress |
Renders a module and returns its output.
void renderModule ( $module, $attribs = array() )
| $module | object | The module object |
| $attribs | array | Optional attributes, i.e. ‘style’ |
If no $attribs are provided, the default output style applied is ‘none’.
Example
A template designer may provide custom “chrome” styles by adding html/modules.php to the currently active template directory. Each “chrome” is rendered “on top” if the style attribute in the template is given as a space separated list:
Example
<jdoc:include type="modules" name="right" style="mystyle otherstyle" />