JDocument/loadRenderer
From Joomla! Documentation
Loads and instantiates a document renderer class.
Syntax
object loadRenderer( $type )
where:
| Argument | Data type | Description | Default |
|---|---|---|---|
| $type | string | Renderer type. |
Example
To load the 'myrenderer' renderer class for the 'mytype' document type:
$doc =& JDocument::getInstance( 'mytype' ); $renderer =& $doc->loadRenderer( 'myrenderer' );
This will load the renderer class JDocumentRendererMyrenderer in /libraries/joomla/document/mytype/renderer/myrenderer.php.