API15:JTemplate
From Joomla! Documentation
(Difference between revisions)
(New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JTemplate}}
===Defined in===
l...) |
|||
| Line 36: | Line 36: | ||
|Set the prefix of the template cache | |Set the prefix of the template cache | ||
|} | |} | ||
| + | |||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.template.template' );</source> | <source lang="php">jimport( 'joomla.template.template' );</source> | ||
Latest revision as of 12:38, 25 March 2010
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 |
[edit] Defined in
libraries/joomla/template/template.php
[edit] 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 |
[edit] Importing
jimport( 'joomla.template.template' );
[Edit See Also] SeeAlso:JTemplate
[edit] Examples
<CodeExamplesForm />
