API15:JTemplate
From Joomla! Documentation
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
[Edit Descripton] Description:JTemplate
Contents |
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' );
[Edit See Also] SeeAlso:JTemplate
Examples
<CodeExamplesForm />
