Actions

API16

JDocumentRendererModules/render

From Joomla! Documentation

< API16:JDocumentRendererModules
Revision as of 17:45, 22 March 2010 by Doxiki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Contents

Description

Renders multiple modules script and returns the results as a string

[Edit Descripton]

Description:JDocumentRendererModules/render

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

public function render($position, $params = array(), $content = null)
{
        $renderer       = &$this->_doc->loadRenderer('module');
        $buffer         = '';
 
        foreach (JModuleHelper::getModules($position) as $mod) {
                $buffer .= $renderer->render($mod, $params, $content);
        }
        return $buffer;
}

[Edit See Also] SeeAlso:JDocumentRendererModules/render

Examples

<CodeExamplesForm />