Actions

API16

JDocumentJSON/render

< API16:JDocumentJSON

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

Render the document.


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

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/json/json.php

Importing

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

Source Body

public function render($cache = false, $params = array())
{
        JResponse::allowCache(false);
        JResponse::setHeader('Content-disposition', 'attachment; filename="'.$this->getName().'.json"', true);
 
        parent::render();
 
        return $this->getBuffer();
}


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

Examples

Code Examples


Advertisement