API16

API16:JDocumentXML/render

From Joomla! Documentation

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

Description

Render the document.

[Edit Descripton]

Template:Description:JDocumentXML/render

Syntax

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

Returns

The rendered data

Defined in

libraries/joomla/document/xml/xml.php

Importing

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

Source Body

public function render($cache = false, $params = array())
{
        parent::render();
        JResponse::setHeader('Content-disposition', 'inline; filename="'.$this->getName().'.xml"', true);

        return $this->getBuffer();
}

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

Examples

<CodeExamplesForm />