| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Document |
JDocument |
display |
display() |
Never | Work in Progress |
Outputs the template to the browser.
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. |
The following code is executed in the index.php file:
Example
$file = 'index.php'; $document->display( $file, $mainframe->getCfg('gzip'), JRequest::getVar('tp', 0 ));