API15:JDocumentRendererModules/render
From Joomla! Documentation
Description
Renders multiple modules script and returns the results as a string
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
render($position, $params=array(), $content=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $position | $name The position of the modules to render | |
| $params | array() | $params Associative array of values |
| $content | null |
Returns
string The output of the script
Defined in
libraries/joomla/document/html/renderer/modules.php
Importing
jimport( 'joomla.document.html.renderer.modules' );
Source Body
function render( $position, $params = array(), $content = null )
{
$renderer =& $this->_doc->loadRenderer('module');
$contents = '';
foreach (JModuleHelper::getModules($position) as $mod) {
$contents .= $renderer->render($mod, $params, $content);
}
return $contents;
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
Code Examples