API15:JTemplate
From Joomla! Documentation
Defined in
libraries/joomla/template/template.php
Methods
| Method name | Description |
|---|---|
| JTemplate | A hack to support __construct() on PHP 4 Hint: descendant classes have no PHP4 class_name() constructors, so this constructor gets called first and calls the top-layer __construct() which (if present) should call parent::__construct() |
| __construct | Class constructor |
| getInstance | Returns a reference to a global Template object, only creating it if it doesn't already exist. |
| parse | Parse a file |
| display | Execute and display a the template |
| fetch | Returns a parsed template |
| enableTemplateCache | enable a template cache |
| setTemplateCachePrefix | Set the prefix of the template cache |
Importing
jimport( 'joomla.template.template' );
Examples
Code Examples