JDocumentJSON/render
From Joomla! Documentation
< 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[edit]
Render the document.
<! removed transcluded page call, red link never existed >
Syntax[edit]
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[edit]
The rendered data
Defined in[edit]
libraries/joomla/document/json/json.php
Importing[edit]
jimport( 'joomla.document.json.json' );
Source Body[edit]
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[edit]
Code Examples[edit]