API16

API16:JDocumentHTML/render

From Joomla! Documentation

Description

Outputs the template to the browser.


<! removed transcluded page call, red link never existed >

Syntax

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

The rendered data

Defined in

libraries/joomla/document/html/html.php

Importing

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

Source Body

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

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


<! removed transcluded page call, red link never existed >

Examples

Code Examples