Table of Contents

display

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Document Class JDocument Method display Reference display() Never Work in Progress

Outputs the template to the browser.

Syntax

void display ( $template, $compress, $outline )

$template string is a string containing the name of the template to display.
$compress boolean is a flag that specifies whether or not the output should be compressed using Zlib compression. This parameter is optional, and if omitted defaults to false.
$outline mixed is a flag that specifies whether or not information about the placeholders should be displayed.

Examples

The following code is executed in the index.php file:

Example

$file = 'index.php';
$document->display( $file, $mainframe->getCfg('gzip'), JRequest::getVar('tp', 0 ));