Support Joomla!

references:joomla.framework:application:jmodulehelper-rendermodule

Table of Contents

renderModule

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Application Class JModuleHelper Method renderModule Reference renderModule() Never Work in Progress

Renders a module and returns its output.

Syntax

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’.

Examples

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" />

 
references/joomla.framework/application/jmodulehelper-rendermodule.txt (518 views) · Last modified: 2007/08/15 14:50