API16

JDocumentHTML/render

From Joomla! Documentation

< API16:JDocumentHTML
Revision as of 17:45, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Outputs the template to the browser. <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

Outputs the template to the browser.

[Edit Descripton]

Template:Description:JDocumentHTML/render

Syntax[edit]

render($caching=false, $params=array())
Parameter Name Default Value Description
$caching false $cache If true, cache the output
$params array() $params Associative array of attributes

Returns[edit]

The rendered data

Defined in[edit]

libraries/joomla/document/html/html.php

Importing[edit]

jimport( 'joomla.document.html.html' );

Source Body[edit]

function render($caching = false, $params = array())
{
        if (!empty($this->_template)) {
                $data = $this->_renderTemplate();
        } else {
                $this->parse($params);
                $data = $this->_renderTemplate();
        }

        parent::render();
        return $data;
}

[Edit See Also] Template:SeeAlso:JDocumentHTML/render

Examples[edit]

<CodeExamplesForm />