API15

API15:JApplication/render

From Joomla! Documentation

Description

Render the application.

[Edit Descripton]

Template:Description:JApplication/render

Syntax

render()


Defined in

libraries/joomla/application/application.php

Importing

jimport( 'joomla.application.application' );

Source Body

function render()
{
        $params = array(
                'template'      => $this->getTemplate(),
                'file'          => 'index.php',
                'directory'     => JPATH_THEMES
        );

        $document =& JFactory::getDocument();
        $data = $document->render($this->getCfg('caching'), $params );
        JResponse::setBody($data);
}

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

Examples

<CodeExamplesForm />