Actions

JDocument/loadRenderer

From Joomla! Documentation

Revision as of 17:41, 7 September 2008 by Chris Davenport (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

See also